You are here

public function LayoutBuilderRestrictionBase::alterSectionDefinitions in Layout Builder Restrictions 8.2

Alter the section definitions.

Overrides LayoutBuilderRestrictionInterface::alterSectionDefinitions

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

File

src/Plugin/LayoutBuilderRestrictionBase.php, line 27

Class

LayoutBuilderRestrictionBase
Base class for Layout builder restriction plugin plugins.

Namespace

Drupal\layout_builder_restrictions\Plugin

Code

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