1

There is a "primary admin actions" block in the seven theme (provided by the Drupal 8 standard install profile) which only shows up if my view if the path is "admin/content" but if I change the path to anything else, the block is gone. where is this configured ?

1 Answer 1

4

The LocalActionsBlock is a block plugin that displays menu action links for a given route based on the LocalActionManager::getActionsFromRoute method.

The route that corresponds to the path /admin/content has action links, but whichever route that corresponds to the path you are using does not have any action links defined.

Action links are defined in MODULENAME.links.action.yml file.

If the desired outcome is to have the local actions that correspond to /admin/content on a different path, then a module should be created that defines additional action links for those routes.

1
  • Hi Can you give me a more detailed examplel of how to add the node.add_page to a new url?
    – Diana
    Commented May 9, 2016 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.