Skip to main content
8 events
when toggle format what by license comment
Nov 9, 2021 at 14:40 comment added liquidcms @Joseph, thanks for the link and yes, i know that with the patch i mention (as LB doesn't already use Condition plugins) i could do this with a plugin - but it seems overkill as this provides an unneeded UI. A hook (or event handler) would be more efficient.
Nov 9, 2021 at 13:46 history edited No Sssweat CC BY-SA 4.0
Typo fix
Nov 9, 2021 at 10:42 answer added 4uk4 timeline score: 1
Nov 9, 2021 at 9:32 comment added berliner @liquidcms Can you describe in a bit more detail what you want to achieve?
Nov 8, 2021 at 23:19 comment added Joseph The patch you mention makes use of Condition plugins, the same kind that are used on blocks in Block Layout. You can build your own Condition plugins just like the built-in ones.
Nov 8, 2021 at 21:41 comment added liquidcms @Joseph, so any idea then what the event is that controls access to blocks placed with layout builder?
Nov 8, 2021 at 20:22 comment added Joseph I believe Drupal is gradually phasing out hooks in favor of plugins and event subscribers (you can many find articles about why they're better). I wouldn't be surprised if the patch will end up not providing a hook implementation. Besides, blocks placed in Block Layout already use Condition plugins. No sense creating a whole different mechanism when that can be used instead.
Nov 8, 2021 at 19:58 history asked liquidcms CC BY-SA 4.0