You are here

protected function Command::examples in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 src/Drush/Command.php \Drupal\config_import\Drush\Command::examples()
  2. 8.0 src/Drush/Command.php \Drupal\config_import\Drush\Command::examples()

Add prefix for every example.

1 call to Command::examples()
Command::__construct in src/Drush/Command.php
Command constructor.

File

src/Drush/Command.php, line 92

Class

Command
Class Command.

Namespace

Drupal\config_import\Drush

Code

protected function examples() {
  $this->info += [
    __FUNCTION__ => [],
  ];
  foreach ($this->info[__FUNCTION__] as $example => $description) {
    $this->info[__FUNCTION__][sprintf('drush %s %s', $this->alias, $example)] = $description;
    unset($this->info[__FUNCTION__][$example]);
  }
}