public function LayoutBuilderRestrictionBase::inlineBlocksAllowedinContext in Layout Builder Restrictions 8.2
Returns an array of allowed inline blocks in a given context.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.
int $delta: The delta of the section to splice.
string $region: The region the block is going in.
Return value
array An array of allowed inline block types.
Overrides LayoutBuilderRestrictionInterface::inlineBlocksAllowedinContext
2 methods override LayoutBuilderRestrictionBase::inlineBlocksAllowedinContext()
- EntityViewModeRestriction::inlineBlocksAllowedinContext in src/
Plugin/ LayoutBuilderRestriction/ EntityViewModeRestriction.php - Returns an array of allowed inline blocks in a given context.
- EntityViewModeRestrictionByRegion::inlineBlocksAllowedinContext in modules/
layout_builder_restrictions_by_region/ src/ Plugin/ LayoutBuilderRestriction/ EntityViewModeRestrictionByRegion.php - Returns an array of allowed inline blocks in a given context.
File
- src/
Plugin/ LayoutBuilderRestrictionBase.php, line 41
Class
- LayoutBuilderRestrictionBase
- Base class for Layout builder restriction plugin plugins.
Namespace
Drupal\layout_builder_restrictions\PluginCode
public function inlineBlocksAllowedinContext(SectionStorageInterface $section_storage, $delta, $region) {
return $this
->getInlineBlockPlugins();
}