function ContentExportCommand::configure

File

core/lib/Drupal/Core/DefaultContent/ContentExportCommand.php, line 35

Class

ContentExportCommand
Exports a single content entity in YAML format.

Namespace

Drupal\Core\DefaultContent

Code

protected function configure() : void {
  $this->setDescription('Exports a single content entity in YAML format.')
    ->addArgument('entity_type_id', InputArgument::REQUIRED, 'The type of entity to export (e.g., node, taxonomy_term).')
    ->addArgument('entity_id', InputArgument::REQUIRED, 'The ID of the entity to export. Will usually be a number.');
}

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