status_messages missing "status_headings" variable

Created on 20 March 2021, about 4 years ago
Updated 1 May 2025, 13 days ago

Problem/Motivation

Most (if not all) status_messages templates refer to the "status_headings" variable under normal circumstances.

The core render element itself renders it as such:

[
  '#theme' => 'status_messages',
  '#message_list' => $messages,
  '#status_headings' => [
    'status' => t('Status message'),
    'error' => t('Error message'),
    'warning' => t('Warning message'),
  ],
],

Proposed resolution

Add this to the build array for status messages:

'#status_headings' => [
  'status' => t('Status message'),
  'error' => t('Error message'),
  'warning' => t('Warning message'),
],

User interface changes

There will be front-end rendering changes in a lot of cases.

API changes

None

Data model changes

None

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States luke.leber Pennsylvania

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024