You are here

public function FormAlter::__construct in Layout Builder Restrictions 8

Same name and namespace in other branches
  1. 8.2 src/Form/FormAlter.php \Drupal\layout_builder_restrictions\Form\FormAlter::__construct()

FormAlter constructor.

Parameters

\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface $section_storage_manager: The section storage manager.

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.

\Drupal\Core\Block\LayoutPluginManagerInterface $layout_manager: The layout plugin manager.

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

src/Form/FormAlter.php, line 75

Class

FormAlter
Supplement form UI to add setting for which blocks & layouts are available.

Namespace

Drupal\layout_builder_restrictions\Form

Code

public function __construct(SectionStorageManagerInterface $section_storage_manager, BlockManagerInterface $block_manager, LayoutPluginManagerInterface $layout_manager, ContextHandlerInterface $context_handler, ModuleHandlerInterface $module_handler) {
  $this->sectionStorageManager = $section_storage_manager;
  $this->blockManager = $block_manager;
  $this->layoutManager = $layout_manager;
  $this->contextHandler = $context_handler;
  $this->moduleHandler = $module_handler;
}