public function PathautoCommands::interactGenerateAliases in Pathauto 8
@hook interact pathauto:aliases-generate
Throws
\Drush\Exceptions\UserAbortException Thrown when the user cancels the operation during CLI interaction.
File
- src/
Commands/ PathautoCommands.php, line 176
Class
- PathautoCommands
- Drush commands allowing to perform Pathauto tasks from the command line.
Namespace
Drupal\pathauto\CommandsCode
public function interactGenerateAliases(Input $input, Output $output) {
if (!$input
->getArgument('action')) {
$action = $this
->io()
->choice(dt('Choose the action to perform.'), $this
->getAllowedGenerateActions());
$input
->setArgument('action', $action);
}
}