Skip to content
Snippets Groups Projects
Commit e3062a82 authored by Adrian Cid Almaguer's avatar Adrian Cid Almaguer
Browse files

Issue #3426260 by adriancid: Drush validate hooks not being executed

parent 8cee5350
No related branches found
No related tags found
1 merge request!7Issue #3340468 by Charchil Khandelwal, kkalashnikov, omkar_yewale, gayatri...
......@@ -19,9 +19,6 @@ class ModulesWeightCommands extends DrushCommands {
const MODULES_WEIGHT_GREEN_OUTPUT = "\033[1;32;40m\033[1m%s\033[0m";
const MODULES_WEIGHT_RED_OUTPUT = "\033[31;40m\033[1m%s\033[0m";
// This is more readable.
const REQ = InputOption::VALUE_REQUIRED;
const OPT = InputOption::VALUE_OPTIONAL;
/**
......@@ -88,11 +85,13 @@ class ModulesWeightCommands extends DrushCommands {
}
/**
* Validate for drush:mw-show-system-modules command.
* Validate for mw-show-system-modules command.
*
* @param \Consolidation\AnnotatedCommand\CommandData $commandData
* The command data.
*
* @hook validate mw-show-system-modules
*
* @throws \Exception
*/
public function validateWeightShowSystemModules(CommandData $commandData) {
......@@ -116,7 +115,7 @@ class ModulesWeightCommands extends DrushCommands {
* @param string $arg
* The status option (on, off).
*
* @command drush:mw-show-system-modules
* @command mw-show-system-modules
* @aliases mw-ssm
*/
public function moduleWeightShowSystemModules(string $arg) {
......@@ -159,11 +158,13 @@ class ModulesWeightCommands extends DrushCommands {
}
/**
* Validate for drush:mw-reorder.
* Validate for mw-reorder.
*
* @param \Consolidation\AnnotatedCommand\CommandData $commandData
* The commanda data.
*
* @hook validate mw-reorder
*
* @throws \Drush\Exceptions\UserAbortException
*/
public function validateModuleWeightReorder(CommandData $commandData) {
......@@ -202,7 +203,7 @@ class ModulesWeightCommands extends DrushCommands {
* @param array $options
* The options.
*
* @command drush:mw-reorder
* @command mw-reorder
* @aliases mw-r
* @options minus If the option is present the weight will be consider as a
* negative value. Read for more information
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment