1

has somebody an idea, how to customize the contextual links in D8?

I have created a custom block type and it would be wonderful to have a link in the contextual links menu: "Edit block content".

  • 1
    Sounds like core should do that by default, I suggest you open a feature request. – Berdir Jan 13 '15 at 19:26
  • Thanks - i agree (and would open a feature request), but one thing i do not understand so far: (drupal.org/node/2101565) If somebody creates a "Custom block" - do this automatically means, that there are fields and therefore they are editable for the user. Is the meaning here: "Custom block" means "Content block" in the sense of fieldable entity? If a developer f.e. generates a block via the Block API that prints out some stuff - "Edit block content" would make no sense here (?) ... – Sachbearbeiter Jan 14 '15 at 12:15
  • That naming there is very confusing. That is about defining your own block plugin in code. That is not an entity, or fieldable or anything. block_content.module (called custom blocks in 7.x and partially still in the UI because it was renamed), provides a content entity (Block content), that is then exposed as blocks that can be placed. If you want to create content with fields in the UI, use that, if you have different requirements, (e.g. blocks that load data from somewhere, and are dynamic), you create a block plugin, where you can do whatever you want. – Berdir Jan 14 '15 at 21:51
  • 1
    Thanks for the explanation. I created the issue 2407761 on drupal.org: (drupal.org/node/2407761) – Sachbearbeiter Jan 15 '15 at 9:42
1

The missing "edit" link was a bug in early Drupal 8 betas, and has been fixed as of beta5: https://www.drupal.org/node/2284917

Your Answer

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

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