- Issue created by @Siavash
I made this patch that seems to work when combined with a hook implementation in a custom module.
The hook implementation in custom module (along with patch):
/** * Implements hook_gutenberg_node_type_route(). */ function www_core_gutenberg_node_type_route(RouteMatchInterface $route_match) { //Get Gutenberg node type from group content routes. $route_name = $route_match->getRouteName(); if ($route_name == 'entity.group_relationship.create_form' || $route_name == 'entity.group_relationship.edit_form') { /** @var string $parameter */ $parameter = $route_match->getParameter('plugin_id'); return explode(':', $parameter)[1]; } return NULL; }
- Status changed to Needs work
7 months ago 9:46am 27 May 2024 - 🇵🇹Portugal marcofernandes
IIRC the current example on the gutenberg.api file was made for Group 2.x. I guess it makes sense to update it to 3.x.
Could you provide a MR for it? It would be easier to review 😉 - First commit to issue fork.
- Merge request !147Issue #3449882 - Fix gutenberg_node_type_route() hook invoke → (Merged) created by immaculatexavier
- Status changed to Needs review
7 months ago 10:53am 27 May 2024 - Status changed to Fixed
7 months ago 11:18am 27 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.