You are here

private function PluginHelperTrait::layoutManager in Layout Builder Restrictions 8.2

Gets the layout plugin manager.

Return value

\Drupal\Core\Layout\LayoutPluginManagerInterface The layout plugin manager.

File

src/Traits/PluginHelperTrait.php, line 357

Class

PluginHelperTrait
Methods to help Layout Builder Restrictions plugins.

Namespace

Drupal\layout_builder_restrictions\Traits

Code

private function layoutManager() {
  return $this->layoutManager ?? \Drupal::service('plugin.manager.core.layout');
}