Use MessageCommand instead of PrependCommand

Created on 16 January 2023, almost 2 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

The code in AjaxController can be simplified: a new MessageCommand class was added in 8.8.0 to easily add Drupal messages in ajax responses ( change record ). Since the module has Drupal 8.8.0 as minimum version we can use this without changing the minimum version.

Proposed resolution

Replace the messages render array and PrependCommand with a MessageCommand.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

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