0

Currently the only link that shows on the contextual links for custom blocks is the "configure block" link. I want to add an edit link to get to the main content of the block, is this possible?

  • Yep, definitely possible, as shown in the documentation. Which part of the docs are you struggling with exactly, or is it just that you haven't looked for them yet? – Clive Jun 20 '14 at 12:38
  • Thanks for the link Clive. Is it possible to add this for custom blocks added via the UI, currently it seems that the .yml that handles the default block lives in core... block.contextual_links.yml for example.. how would you extend this, ie something that's defined by a core module. – Ddroid_za Jun 20 '14 at 13:00
  • You've always got hook_contextual_links_view_alter(), but I haven't tried adding stuff to custom blocks yet. Interesting question, would you mind editing the post to confirm that you're particularly interested in custom blocks? I think that point changes the question considerably – Clive Jun 20 '14 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.