function seven_preprocess_update_version in Drupal 8
Same name and namespace in other branches
- 9 core/themes/seven/seven.theme \seven_preprocess_update_version()
Prepares variables for update version templates.
Default template: update-version.html.twig.
Parameters
array $variables: An associative array containing:
- version: An array of information about the release version.
File
- core/
themes/ seven/ seven.theme, line 387 - Functions to support theming in the Seven theme.
Code
function seven_preprocess_update_version(array &$variables) {
$variables['#attached']['library'][] = 'seven/update-report';
}