function DrupalBoot::enforce_requirement

8.0.x DrupalBoot.php DrupalBoot::enforce_requirement(&$command)
7.x DrupalBoot.php DrupalBoot::enforce_requirement(&$command)
master DrupalBoot.php DrupalBoot::enforce_requirement(&$command)

Called by Drush when a command is selected, but before it runs. This gives the Boot class an opportunity to determine if any minimum requirements (e.g. minimum Drupal version) declared in the command have been met.

Return value

TRUE if command is valid. $command['bootstrap_errors'] should be populated with an array of error messages if the command is not valid.

Overrides BaseBoot::enforce_requirement

File

lib/Drush/Boot/DrupalBoot.php, line 71

Namespace

Drush\Boot

Class

DrupalBoot

Code

function enforce_requirement(&$command) {
  parent::enforce_requirement($command);
  $this->drush_enforce_requirement_drupal_dependencies($command);
}