You are here

public function BlocksRendererHelper::__construct in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/BlocksRendererHelper.php \Drupal\gutenberg\BlocksRendererHelper::__construct()

BlocksRendererHelper constructor.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: Renderer service.

\Drupal\Core\Block\BlockManagerInterface $block_manager: Block manager service.

\Drupal\Core\Session\AccountProxyInterface $current_user: Current user service.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The lazy context repository service.

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

\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.

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

File

src/BlocksRendererHelper.php, line 91

Class

BlocksRendererHelper
Class BlocksRendererHelper.

Namespace

Drupal\gutenberg

Code

public function __construct(RendererInterface $renderer, BlockManagerInterface $block_manager, AccountProxyInterface $current_user, ContextRepositoryInterface $context_repository, ContextHandlerInterface $context_handler, TitleResolverInterface $title_resolver, LoggerInterface $logger) {
  $this->renderer = $renderer;
  $this->blockManager = $block_manager;
  $this->currentUser = $current_user;
  $this->contextRepository = $context_repository;
  $this->contextHandler = $context_handler;
  $this->titleResolver = $title_resolver;
  $this->logger = $logger;
}