No success message on save media setting config.

Created on 4 February 2025, 2 months ago

Problem/Motivation

I am using 8.x-1.0-rc1 version in drupal 11 by making it compatible with d11. On going to media config i am saving the settings which i did but there is no success message or redirection. So to config i have to go to media to check if it is applied.

Steps to reproduce

1. Go to the config page : admin/config/domain/entities
2. Then select the entity and the config.
3. Then you will get a config button click on it.
4. Then select the media type and make the settings.
5. Save the config.

Proposed resolution

Add this below code.

$entity_type = $this->entityTypeManager->getDefinition($entity_type_id, FALSE);
    $this->messenger()->addStatus($this->t('Domain access '. $entity_type->getLabel() .' settings have been saved successfully.'));
📌 Task
Status

Active

Component

Code

Created by

🇮🇳India suraj3310 Punjab

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

Comments & Activities

Production build 0.71.5 2024