function Boot::enforce_requirement

8.0.x Boot.php Boot::enforce_requirement(&$command)
7.x Boot.php Boot::enforce_requirement(&$command)
master Boot.php Boot::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.

1 method overrides Boot::enforce_requirement()
BaseBoot::enforce_requirement in lib/Drush/Boot/BaseBoot.php
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.

File

lib/Drush/Boot/Boot.php, line 91

Namespace

Drush\Boot

Class

Boot
Defines the interface for a Boot classes. Any CMS that wishes to work with Drush should extend BaseBoot. If the CMS has a Drupal-Compatibility layer, then it should extend DrupalBoot.

Code

function enforce_requirement(&$command);