Add to all node routes via entity.node.* type approach

Created on 29 July 2025, 7 days ago

Follow up to https://github.com/localgovdrupal/localgov_replicate/pull/13

At the moment in localgov_replicate.module we are checking for:

$routes = [
'entity.node.canonical',
'entity.node.replicate',
'entity.node.edit_form',
'entity.node.book_outline_form',
'entity.node.delete_form',
'entity.node.version_history',
'entity.node.entity_hierarchy_reorder',
'entity.node.preview_link_generate',
'entity.node.scheduled_transitions',
];

It might be safer to check for something like if $route_name === 'entity.node.*' ...(or some version of $route_name begins with entity.node so if any other module adds a route in the future, we'll catch it.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇪Ireland markconroy

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

Comments & Activities

Production build 0.71.5 2024