public function Hooks::defineExtraStatusFields in Lightning Core 8.5
Same name and namespace in other branches
- 8.4 src/Commands/Hooks.php \Drupal\lightning_core\Commands\Hooks::defineExtraStatusFields()
Defines the base-profile field to the core:status command.
@hook command-event core:status
Parameters
\Symfony\Component\Console\Event\ConsoleCommandEvent $event: The command event.
See also
::setBaseProfileFieldValue()
File
- src/
Commands/ Hooks.php, line 83
Class
- Hooks
- Implements Drush command hooks.
Namespace
Drupal\lightning_core\CommandsCode
public function defineExtraStatusFields(ConsoleCommandEvent $event) {
$options = $event
->getCommand()
->getDefinition()
->getOptions();
$default_fields = $options['fields']
->getDefault();
$default_fields .= ',base-profile';
$options['fields']
->setDefault($default_fields);
}