You are here

function claro_preprocess_status_messages in Drupal 9

Same name and namespace in other branches
  1. 8 core/themes/claro/claro.theme \claro_preprocess_status_messages()

Implements hook_preprocess_HOOK() for status_messages.

File

core/themes/claro/claro.theme, line 1091
Functions to support theming in the Claro theme.

Code

function claro_preprocess_status_messages(&$variables) {
  $variables['title_ids'] = [];
  foreach ($variables['message_list'] as $message_type => $messages) {
    $variables['title_ids'][$message_type] = Html::getUniqueId("message-{$message_type}-title");
  }
}