Skip to content

Instantly share code, notes, and snippets.

@sqndr
Last active February 16, 2017 12:15
Show Gist options
  • Save sqndr/6b018ba60a218699c23ecb3998274c02 to your computer and use it in GitHub Desktop.
Save sqndr/6b018ba60a218699c23ecb3998274c02 to your computer and use it in GitHub Desktop.
Adding action links to view page

Why?

Add a nice local action button to a administrative overview, as shown in the screenshot.

Link to add new ECK entity

eck.routing.yml:

eck.entity.add:
  path: '/admin/structure/eck/{eck_entity_type}/add/{eck_entity_bundle}'
  …

In the example above, {eck_entity_type} and {eck_entity_bundle} are the route_paramaters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment