public function FormAlter::__construct in Layout Builder Restrictions 8.2
Same name in this branch
- 8.2 src/Form/FormAlter.php \Drupal\layout_builder_restrictions\Form\FormAlter::__construct()
- 8.2 modules/layout_builder_restrictions_by_region/src/Form/FormAlter.php \Drupal\layout_builder_restrictions_by_region\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\Component\Uuid\UuidInterface $uuid: A service for generating UUIDs.
\Drupal\Core\TempStore\PrivateTempStoreFactory $private_temp_store_factory: Creates a private temporary storage for a collection.
File
- modules/
layout_builder_restrictions_by_region/ src/ Form/ FormAlter.php, line 88
Class
- FormAlter
- Supplement form UI to add setting for which blocks & layouts are available.
Namespace
Drupal\layout_builder_restrictions_by_region\FormCode
public function __construct(SectionStorageManagerInterface $section_storage_manager, BlockManagerInterface $block_manager, LayoutPluginManagerInterface $layout_manager, ContextHandlerInterface $context_handler, UuidInterface $uuid, PrivateTempStoreFactory $private_temp_store_factory) {
$this->sectionStorageManager = $section_storage_manager;
$this->blockManager = $block_manager;
$this->layoutManager = $layout_manager;
$this->contextHandler = $context_handler;
$this->uuid = $uuid;
$this->privateTempStoreFactory = $private_temp_store_factory;
}