function claro_preprocess_status_messages
Same name in other branches
- 8.9.x core/themes/claro/claro.theme \claro_preprocess_status_messages()
- 10 core/themes/claro/claro.theme \claro_preprocess_status_messages()
- 11.x core/themes/claro/claro.theme \claro_preprocess_status_messages()
Implements hook_preprocess_HOOK() for status_messages.
File
-
core/
themes/ claro/ claro.theme, line 1111
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.