Add message on every action

Created on 11 September 2023, 10 months ago

Problem/Motivation

No message when action is performed after adding or removing the field value.

Steps to reproduce

Proposed resolution

 $field_name_array = explode("_",$field);
        $field_name = ucfirst(end($field_name_array));
        if (isset($change_method[$field])) {
          switch ($change_method[$field]) {
            case 'new':
              $current_value = $entity->{$field}->getValue();
              $value = array_unique(array_merge($current_value, $value), SORT_REGULAR);
              \Drupal::messenger()->addStatus("The specified users have been granted $field_name access to the specified pages.");
              break;

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India shashank5563 New Delhi

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

Comments & Activities

Production build 0.69.0 2024