Decorate 'menu.parent_form_selector' instead of overwriting with service provider

Created on 30 April 2024, about 1 year ago
Updated 18 July 2024, 11 months ago

Problem/Motivation

Service provider class in this module replaces the core service class with GroupContentMenuParentFormSelector. This works fine, unless there is another module that tries to alter or decorate the menu parent form selector, for example menu_select module. When working together, there is a fatal error from menu_select module form element, because of the missing route parameter for route menu_select.menu_select_autocomplete

Steps to reproduce

Install this module, install "Menu select" ( https://www.drupal.org/project/menu_select ) module. Try to add group menu item. Observe fatal error.

Proposed resolution

Decorate the MenuParentFormSelector instead of substituting the class with service provider.

Remaining tasks

Check with menu_select module, that they also perform the decoration in a proper way.

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024