public function ConfigureBlockFormBase::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
- 9 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
Constructs a new block form.
Parameters
\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layout_tempstore_repository: The layout tempstore repository.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository.
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.
\Drupal\Component\Uuid\UuidInterface $uuid: The UUID generator.
\Drupal\Core\Plugin\PluginFormFactoryInterface $plugin_form_manager: The plugin form manager.
File
- core/
modules/ layout_builder/ src/ Form/ ConfigureBlockFormBase.php, line 116
Class
- ConfigureBlockFormBase
- Provides a base form for configuring a block.
Namespace
Drupal\layout_builder\FormCode
public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, ContextRepositoryInterface $context_repository, BlockManagerInterface $block_manager, UuidInterface $uuid, PluginFormFactoryInterface $plugin_form_manager) {
$this->layoutTempstoreRepository = $layout_tempstore_repository;
$this->contextRepository = $context_repository;
$this->blockManager = $block_manager;
$this->uuidGenerator = $uuid;
$this->pluginFormFactory = $plugin_form_manager;
}