public function LayoutBuilderRestrictionInterface::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.
1 method overrides LayoutBuilderRestrictionInterface::inlineBlocksAllowedinContext()
- LayoutBuilderRestrictionBase::inlineBlocksAllowedinContext in src/
Plugin/ LayoutBuilderRestrictionBase.php - Returns an array of allowed inline blocks in a given context.
File
- src/
Plugin/ LayoutBuilderRestrictionInterface.php, line 86
Class
- LayoutBuilderRestrictionInterface
- Defines an interface for Layout builder restriction plugin plugins.
Namespace
Drupal\layout_builder_restrictions\PluginCode
public function inlineBlocksAllowedinContext(SectionStorageInterface $section_storage, $delta, $region);