- Issue created by @markconroy
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.
Active
1.0
Code