function drush_get_drupal_core_compatibility

8.0.x environment.inc drush_get_drupal_core_compatibility()
7.x environment.inc drush_get_drupal_core_compatibility()
master environment.inc drush_get_drupal_core_compatibility()

Helper function to get core compatibility constant.

Return value

string The Drupal core compatibility constant.

5 calls to drush_get_drupal_core_compatibility()
drush_check_module_dependencies in commands/core/drupal/environment_7.inc
Return dependencies and its status for modules.
drush_check_module_dependencies in commands/core/drupal/environment.inc
Return dependencies and its status for modules.
drush_extension_check_incompatibility in includes/environment.inc
Test compatibility of a extension with version of drupal core and php.
_drush_make_generate_makefile_contents in commands/make/generate.contents.make.inc
Generate the actual contents of the .make file.
_drush_make_generate_projects in commands/make/generate.make.inc
Generate the $projects makefile array for the current site.

File

includes/environment.inc, line 836
Functions used by drush to query the environment and setting the current configuration.

Code

function drush_get_drupal_core_compatibility() {
  if (defined('DRUPAL_CORE_COMPATIBILITY')) {
    return DRUPAL_CORE_COMPATIBILITY;
  }
  elseif (defined('\Drupal::CORE_COMPATIBILITY')) {
    return \Drupal::CORE_COMPATIBILITY;
  }
}