function LocaleThemeHooks::preprocessLocaleTranslationUpdateInfo
Prepares variables for translation status information templates.
Translation status information is displayed per language.
Default template: locale-translate-edit-form-strings.html.twig.
Parameters
array $variables: An associative array containing:
- updates: The projects which have updates.
- not_found: The projects which updates are not found.
See also
\Drupal\locale\Form\TranslationStatusForm
File
-
core/
modules/ locale/ src/ Hook/ LocaleThemeHooks.php, line 63
Class
- LocaleThemeHooks
- Hook implementations for locale.
Namespace
Drupal\locale\HookCode
public function preprocessLocaleTranslationUpdateInfo(array &$variables) : void {
foreach ($variables['updates'] as $update) {
$variables['modules'][] = $update['name'];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.