Error messages should utilize Drupal's messages

Created on 21 July 2023, over 1 year ago
Updated 15 May 2024, 6 months ago

This obviously should be using Drupal's messages styling:

Solution

You can invoke messages via JS

Ensure the core/drupal.message library is loaded

Do this:

const messenger = new Drupal.Message;
messenger.add('js status message', {type: 'status'});
messenger.add('js error message', {type: 'error'});
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024