Error messages should utilize Drupal's messages

Created on 21 July 2023, 11 months ago
Updated 15 May 2024, about 1 month 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.69.0 2024