You are here

public function LayoutBuilderRestrictionBase::alterBlockDefinitions in Layout Builder Restrictions 8.2

Alter the block definitions.

Overrides LayoutBuilderRestrictionInterface::alterBlockDefinitions

2 methods override LayoutBuilderRestrictionBase::alterBlockDefinitions()
EntityViewModeRestriction::alterBlockDefinitions in src/Plugin/LayoutBuilderRestriction/EntityViewModeRestriction.php
Alter the block definitions.
EntityViewModeRestrictionByRegion::alterBlockDefinitions in modules/layout_builder_restrictions_by_region/src/Plugin/LayoutBuilderRestriction/EntityViewModeRestrictionByRegion.php
Alter the block definitions.

File

src/Plugin/LayoutBuilderRestrictionBase.php, line 20

Class

LayoutBuilderRestrictionBase
Base class for Layout builder restriction plugin plugins.

Namespace

Drupal\layout_builder_restrictions\Plugin

Code

public function alterBlockDefinitions(array $definitions, array $context) {
  return $definitions;
}