Adding action links to an existing page in Drupal

Note Statistics

Note Statistics

  • Viewed 137 times
Sat, 07/25/2020 - 18:12

For module name mymodule we need to create a YAML file in your module root directory called mymodule.links.action.yml

with the content below

mymodule.action_name:
  route_name: target_route_id
  title: 'Label of my action'
  appears_on:
    - id_of_page_1
Authored by