function ConfigureBlockFormBase::__construct

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
  2. 10 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
  3. 9 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::__construct()
  4. 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\Form

Code

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.