Add alter for `route_callbacks`

Created on 11 July 2024, about 2 months ago
Updated 29 August 2024, 9 days ago

Problem/Motivation

From time to time you need to override the route_callbacks call in your projects or even disable it.
But the core does not have such a feature.
I think that we should add the possibility to change the route_callbacks call

Proposed resolution

I propose to make a special .yml file with the ability to override all necessary route_callbacks

Structure *.routing.alter.yml

New *.routing.alter.yml file - need for *.routing.yml alter from other modules.

Name: <module>.routing.alter.yml

Structure:

<alterning_module_name1>
  route_callbacks_alter:
    - <route_callback_name1-1>: <new_route_callback_name1-1>
    - <route_callback_name1-2>: <new_route_callback_name2-2>
    - ...
    - <route_callback_name1-N>: <new_route_callback_name1-N>
   weight: <route_callbacks_alter_weight_number>
<alterning_module_name2>
   route_callbacks_alter:
     - <route_callback_name2-1>: <new_route_callback_name2-1>
 
Feature request
Status

Needs work

Version

11.0 🔥

Component
Routing 

Last updated 8 days ago

Created by

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