constant DRUSH_BOOTSTRAP_DRUPAL_ROOT

  1. 8.0.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  2. 6.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  3. 7.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  4. 3.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  5. 4.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  6. 5.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT
  7. master includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_ROOT

Set up and test for a valid drupal root, either through the -r/--root options, or evaluated based on the current working directory.

Any code that interacts with an entire Drupal installation, and not a specific site on the Drupal installation should use this bootstrap phase.

File

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

Code

define('DRUSH_BOOTSTRAP_DRUPAL_ROOT', 1)