The read only notice uses css classes messages warning, warning should be changed to messages--warning to replicate the style of a real message. On the other hand, could this not be changed to use drupal_set_message(), or more importantly the new \Drupal::messenger() service?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

acbramley created an issue. See original summary.

acbramley’s picture

Status: Active » Needs review
StatusFileSize
new556 bytes

Quick fix to the current markup.

acbramley’s picture

StatusFileSize
new544 bytes

Reroll against latest dev

singularo’s picture

Update patch to work with latest release.

ambient.impact’s picture

Is there any reason this isn't using the core messenger service to display this message, or at least a render array of '#type' => 'status_messages'? The current implementation doesn't allow themes to use their own message templates or preprocess functions, and libraries don't get attached.

ambient.impact’s picture

Created a quick merge request to use '#theme' => 'status_messages' for the message, which should fix all our problems.

altcom_neil’s picture

astonvictor made their first commit to this issue’s fork.

astonvictor changed the visibility of the branch 3008741-notice to hidden.

astonvictor’s picture

Status: Needs review » Reviewed & tested by the community

Fixed some minor issues in the MR and pulled new changes.

While testing found that we use a 'string' schema for messages. I guess it should be changed to the 'label' type to allow users to translate messages in the config. I think it should be added in a separate task.

sharique made their first commit to this issue’s fork.

sharique’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.