function drush_drush_language_language_default in Drush Language Commands 8
Assigns the default language.
File
- ./
drush_language.drush.inc, line 111 - Drush (< 9) integration for the drush_language module.
Code
function drush_drush_language_language_default() {
$args = func_get_args();
if (count($args) == 0) {
return drush_set_error('DRUSH_LANGUAGE', dt('Please provide one or more language codes as arguments.'));
}
foreach ($args as $langcode) {
\Drupal::service('drush_language.cli')
->languageDefault(new Drush8Io(), 'dt', $langcode);
}
}