Message
ID: mantra_starter:message
A status, warning or error message, as Drupal prints them in the messages region. One message is printed as it is; two or more of the same type as a list. Used by templates/misc/status-messages.html.twig, once per type.
Status: experimental
| Name | Label | Type | Description |
|---|---|---|---|
content
|
Messages | Slot | One message, or a list of them. A list of two or more is printed as a list. |
type
|
Type | String | The message type: status, warning and error are styled. Not an enum, because Drupal takes any string as a message type. Default: "status" |
heading
|
Heading | String | Visually hidden heading naming the message for assistive technology, such as "Status message". With a heading the message is a region landmark named by it; without one it is no landmark. |
heading_id
|
Heading id | String | Id of the heading. Generated from the type when empty. |
Status
Warning
Error
Several messages
Two or more messages of one type are printed as a list.