function claro_preprocess_status_messages

Implements hook_preprocess_HOOK() for status_messages.

File

core/themes/claro/claro.theme, line 1248

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");
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.