composer update

This commit is contained in:
Oliver Davies 2019-01-24 08:00:03 +00:00
parent f6abc3dce2
commit 71dfaca858
1753 changed files with 45274 additions and 14619 deletions

View file

@ -73,3 +73,16 @@ function webform_webform_options_languages_alter(array &$options, array $element
}
}
}
/**
* Implements hook_webform_options_WEBFORM_OPTIONS_ID_alter().
*/
function webform_webform_options_translations_alter(array &$options, array $element = []) {
if (empty($options)) {
$languages = \Drupal::languageManager()->getLanguages();
$options = [];
foreach ($languages as $language) {
$options[$language->getId()] = $language->getName();
}
}
}