public function FormAlter::__construct in Dashboards with Layout Builder 2.0.x
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.
File
- src/
Form/ FormAlter.php, line 64
Class
- FormAlter
- Supplement form UI to add setting for which blocks & layouts are available.
Namespace
Drupal\dashboards\FormCode
public function __construct(SectionStorageManagerInterface $section_storage_manager, BlockManagerInterface $block_manager, LayoutPluginManagerInterface $layout_manager, ContextHandlerInterface $context_handler) {
$this->sectionStorageManager = $section_storage_manager;
$this->blockManager = $block_manager;
$this->layoutManager = $layout_manager;
$this->contextHandler = $context_handler;
}