protected function ListCommand::configure in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Command/ListCommand.php \Drupal\webprofiler\Command\ListCommand::configure()
- 8.2 webprofiler/src/Command/ListCommand.php \Drupal\webprofiler\Command\ListCommand::configure()
- 4.x webprofiler/src/Command/ListCommand.php \Drupal\webprofiler\Command\ListCommand::configure()
File
- webprofiler/
src/ Command/ ListCommand.php, line 28
Class
- ListCommand
- Class ListCommand * @DrupalCommand ( extension="webprofiler", extensionType="module" )
Namespace
Drupal\webprofiler\CommandCode
protected function configure() {
$this
->setName('webprofiler:list')
->setDescription($this
->trans('commands.webprofiler.list.description'))
->addOption('ip', NULL, InputOption::VALUE_REQUIRED, $this
->trans('commands.webprofiler.list.options.ip'), NULL)
->addOption('url', NULL, InputOption::VALUE_REQUIRED, $this
->trans('commands.webprofiler.list.options.url'), NULL)
->addOption('method', NULL, InputOption::VALUE_REQUIRED, $this
->trans('commands.webprofiler.list.options.method'), NULL)
->addOption('limit', NULL, InputOption::VALUE_REQUIRED, $this
->trans('commands.webprofiler.list.options.limit'), 10);
}