Skip to main content
Typo fix
Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

How to alter Layout BuilerBuilder block visiblity?

Source Link
liquidcms
  • 1.3k
  • 1
  • 12
  • 32

How to alter Layout Builer block visiblity?

Is there a hook to alter block access for blocks placed using Layout Builder? I see there is hook_block_access; but sadly this is not triggered when the block is placed using Layout Builder.

There is also work going on here: https://www.drupal.org/project/drupal/issues/2916876#comment-14279293 to allow standard block visibility settings to be made available to Layout Builder blocks; but this only allows for the defined visibilify plugins. Is this my only option, to create a custom block visiblity plugin and use it with that patch?