You are here

protected function SetValueCommand::configure in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 src/Command/SetValueCommand.php \Drupal\config_pages\Command\SetValueCommand::configure()

File

src/Command/SetValueCommand.php, line 45

Class

SetValueCommand
Class Drupal command.

Namespace

Drupal\config_pages\Command

Code

protected function configure() {
  $this
    ->setName('config_pages:set_value')
    ->setDescription($this
    ->trans('commands.config_pages.set_value.description'))
    ->addArgument('bundle', InputArgument::REQUIRED, $this
    ->trans('commands.user.login.url.options.bundle'), NULL)
    ->addArgument('field_name', InputArgument::REQUIRED, $this
    ->trans('commands.user.login.url.options.field_name'), NULL)
    ->addArgument('value', InputArgument::REQUIRED, $this
    ->trans('commands.user.login.url.options.value'), NULL)
    ->addArgument('context', InputArgument::OPTIONAL, $this
    ->trans('commands.user.login.url.options.context'), NULL)
    ->setAliases([
    'cpsfv',
  ]);
}