function ConsoleExampleConfigureCommand::configure

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/console_test/src/Command/ConsoleExampleConfigureCommand.php \Drupal\console_test\Command\ConsoleExampleConfigureCommand::configure()

File

core/modules/system/tests/modules/console_test/src/Command/ConsoleExampleConfigureCommand.php, line 22

Class

ConsoleExampleConfigureCommand
An example command using configure() instead of the AsCommand attribute.

Namespace

Drupal\console_test\Command

Code

protected function configure() : void {
  $this->setName('example:command-configured');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.