function template_preprocess_locale_translation_update_info

template_preprocess_locale_translation_update_info(array &$variables)

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/locale.pages.inc, line 49
Interface translation summary, editing and deletion user interfaces.

Code

function template_preprocess_locale_translation_update_info(array &$variables) {
  foreach ($variables['updates'] as $update) {
    $variables['modules'][] = $update['name'];
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.pages.inc/function/template_preprocess_locale_translation_update_info/8.1.x