You are here

protected function PluginHelperTrait::getLayoutDefinitions in Layout Builder Restrictions 8.2

Gets layout definitions.

Return value

array[] Keys are layout machine names, and values are layout definitions.

3 calls to PluginHelperTrait::getLayoutDefinitions()
FormAlter::alterEntityViewDisplayForm in src/Form/FormAlter.php
The actual form elements.
FormAlter::alterEntityViewDisplayForm in modules/layout_builder_restrictions_by_region/src/Form/FormAlter.php
The actual form elements.
FormAlter::entityFormEntityBuild in modules/layout_builder_restrictions_by_region/src/Form/FormAlter.php
Save allowed blocks & layouts for the given entity view mode.

File

src/Traits/PluginHelperTrait.php, line 327

Class

PluginHelperTrait
Methods to help Layout Builder Restrictions plugins.

Namespace

Drupal\layout_builder_restrictions\Traits

Code

protected function getLayoutDefinitions() {
  return $this
    ->layoutManager()
    ->getFilteredDefinitions('layout_builder', []);
}