You are here

public function DrushLanguageCommands::add in Drush Language Commands 8

Add and import one or more new language definitions.

@codingStandardsIgnoreStart @command language:add

@aliases langadd,language-add @codingStandardsIgnoreEnd

Parameters

array $langcodes: A comma-delimited list of langcodes for which a definition will be added.

File

src/Commands/DrushLanguageCommands.php, line 43

Class

DrushLanguageCommands
Implements the Drush language commands.

Namespace

Drupal\drush_language\Commands

Code

public function add(array $langcodes) {
  $langcodes = StringUtils::csvToArray($langcodes);
  $this->cliService
    ->add($this
    ->io(), 'dt', $langcodes);
}