You are here

protected function ExportCommand::configure in Commerce Demo 8.2

Same name and namespace in other branches
  1. 8 src/Command/ExportCommand.php \Drupal\commerce_demo\Command\ExportCommand::configure()

File

src/Command/ExportCommand.php, line 79

Class

ExportCommand
Provides a command for exporting content entities.

Namespace

Drupal\commerce_demo\Command

Code

protected function configure() {
  $this
    ->setName('commerce_demo:export')
    ->setDescription($this
    ->trans('commands.commerce_demo.export.description'))
    ->addOption('directory', '', InputOption::VALUE_OPTIONAL, $this
    ->trans('commands.commerce_demo.export.options.directory'), __DIR__ . '/../../content/')
    ->addArgument('entity_type', InputArgument::REQUIRED, $this
    ->trans('commands.commerce_demo.export.arguments.entity_type'))
    ->addArgument('bundle', InputArgument::REQUIRED, $this
    ->trans('commands.commerce_demo.export.arguments.bundle'));
}