You are here

function seven_preprocess_update_version in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/seven/seven.theme \seven_preprocess_update_version()
  2. 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 445
Functions to support theming in the Seven theme.

Code

function seven_preprocess_update_version(array &$variables) {
  $variables['#attached']['library'][] = 'seven/update-report';
}