You are here

public function LayoutBuilderAddBlockController::__construct in Panopoly 8.2

LayoutBuilderAddBlockController constructor.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.

\Drupal\Component\Uuid\UuidInterface $uuid: The uuid generator service.

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler service.

\Drupal\Core\Block\BlockManagerInterface $block_plugin_manager: The block manager server.

File

modules/panopoly/panopoly_magic/src/Controller/LayoutBuilderAddBlockController.php, line 71

Class

LayoutBuilderAddBlockController
Controller for adding blocks in layout builder.

Namespace

Drupal\panopoly_magic\Controller

Code

public function __construct(FormBuilderInterface $form_builder, UuidInterface $uuid, ContextHandlerInterface $context_handler, BlockManagerInterface $block_plugin_manager) {
  $this->formBuilder = $form_builder;
  $this->uuid = $uuid;
  $this->contextHandler = $context_handler;
  $this->blockPluginManager = $block_plugin_manager;
}