By damiankloip on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
The DRUPAL_CORE_COMPATIBILITY and VERSION constants previously defined in bootstrap.inc have been converted to class constants on the Drupal class.
Drupal 7:
$release = VERSION;
$core = DRUPAL_CORE_COMPATIBILITY;
Drupal 8:
// When not in a namespace
$release = Drupal::VERSION;
$core = Drupal::CORE_COMPATIBILITY
// When in a namespace
$release = \Drupal::VERSION;
$core = \Drupal::CORE_COMPATIBILITY
Impacts:
Module developers