You are here

public function ReusableBlockProcessor::__construct in Gutenberg 8.2

ReusableBlockProcessor constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Psr\Log\LoggerInterface $logger: Gutenberg logger interface.

File

src/BlockProcessor/ReusableBlockProcessor.php, line 48

Class

ReusableBlockProcessor
Processes Gutenberg reusable blocks.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, LoggerInterface $logger) {
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
  $this->logger = $logger;
}