composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue