function ConfigureBlockFormBase::__construct
Same name and namespace in other branches
- 11.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
- 10 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()
- 8.9.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
Constructs a new block form.
Parameters
\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layoutTempstoreRepository: The layout tempstore repository.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository.
\Drupal\Core\Block\BlockManagerInterface $blockManager: The block manager.
\Drupal\Component\Uuid\UuidInterface $uuidGenerator: The UUID generator.
\Drupal\Core\Plugin\PluginFormFactoryInterface $pluginFormFactory: The plugin form manager.
File
-
core/
modules/ layout_builder/ src/ Form/ ConfigureBlockFormBase.php, line 90
Class
- ConfigureBlockFormBase
- Provides a base form for configuring a block.
Namespace
Drupal\layout_builder\FormCode
public function __construct(protected LayoutTempstoreRepositoryInterface $layoutTempstoreRepository, ContextRepositoryInterface $context_repository, protected BlockManagerInterface $blockManager, protected UuidInterface $uuidGenerator, protected PluginFormFactoryInterface $pluginFormFactory) {
$this->contextRepository = $context_repository;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.