You are here

public function BlockComponentPreviewFormReplace::__construct in Dashboards with Layout Builder 8

Creates a BlockComponentRenderArray object.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The core renderer service.

File

src/EventSubscriber/BlockComponentPreviewFormReplace.php, line 43

Class

BlockComponentPreviewFormReplace
Replaces form elements with divs in layout builder previews.

Namespace

Drupal\dashboards\EventSubscriber

Code

public function __construct(RendererInterface $renderer) {
  $this->renderer = $renderer;
}