function ConfigureBlockFormBase::__construct

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

Class

ConfigureBlockFormBase
Provides a base form for configuring a block.

Namespace

Drupal\layout_builder\Form

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.