- πΊπΈUnited States smustgrave
Same as π Rename hook_menu_local_actions_alter() to hook_local_actions_alter() Needs work can we update the MR for 10.1 please
- πΊπΈUnited States JonMcL Brooklyn, NY
Working well for us. We are using this to set a specific route parameter based on external information:
/** @var \Drupal\Core\Url $url */ $url = &$local_actions['local_action.id']['#link']['url']; $url->setRouteParameter('node', $node->id());
A word to the wise: don't be like me and remember that you may likely need to have a method of invalidating the cache for this rendered item.
- First commit to issue fork.
- last update
over 1 year ago 29,300 pass - @rpayanm opened merge request.
- Status changed to Needs review
over 1 year ago 8:43pm 20 April 2023 - Status changed to Needs work
over 1 year ago 12:00am 23 April 2023 - πΊπΈUnited States smustgrave
Appears this was just a copy but not updated for 10.1 but should be simple.