protected function ExportDrupalCommand::configure in Search API Synonym 8
File
- src/
Command/ ExportDrupalCommand.php, line 30
Class
- ExportDrupalCommand
- Drupal Console Command for export synonyms.
Namespace
Drupal\search_api_synonym\CommandCode
protected function configure() {
$this
->setName('searchapi:synonym:export')
->setDescription($this
->trans('commands.searchapi.synonym.export.description'))
->addOption('plugin', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.searchapi.synonym.export.options.plugin.description'))
->addOption('langcode', null, InputOption::VALUE_REQUIRED, $this
->trans('commands.searchapi.synonym.export.options.langcode.description'))
->addOption('type', null, InputOption::VALUE_OPTIONAL, $this
->trans('commands.searchapi.synonym.export.options.type.description'), 'all')
->addOption('filter', null, InputOption::VALUE_OPTIONAL, $this
->trans('commands.searchapi.synonym.export.options.filter.description'), 'all')
->addOption('incremental', null, InputOption::VALUE_OPTIONAL, $this
->trans('commands.searchapi.synonym.export.options.incremental.description'))
->addOption('file', null, InputOption::VALUE_OPTIONAL, $this
->trans('commands.searchapi.synonym.export.options.file.description'));
}