bootstrap_barrio-5.1.3/templates/misc/status-messages--toasts.html.twig

templates/misc/status-messages--toasts.html.twig
{#
/**
 * @file
 * Default theme implementation for status messages as toasts.
 *
 * Displays status, error, and warning messages as Bootstrap toasts.
 *
 * Available variables:
 * - message_list: List of messages to be displayed, grouped by type.
 * - status_headings: List of all status types.
 * - display: (optional) May have a value of 'status' or 'error' when only
 *   displaying messages of that specific type.
 * - attributes: HTML attributes for the element, including:
 *   - class: HTML classes.
 *
 * @see template_preprocess_status_messages()
 *
 * @ingroup themeable
 */
#}
{{ attach_library('bootstrap_barrio/toast') }}

{{ include('bootstrap_barrio:toasts',
  { message_list: message_list,
    status_headings: status_headings,
    attributes: attributes,
    title_ids: title_ids,
    toast_wrapper_classes: ['position-fixed', 'top-0', 'end-0', 'p-3']
  })
}}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc