You are here

public function BlocksRendererHelper::__construct in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 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.

File

src/BlocksRendererHelper.php, line 49

Class

BlocksRendererHelper
Class BlocksRendererHelper.

Namespace

Drupal\gutenberg

Code

public function __construct(RendererInterface $renderer, BlockManagerInterface $block_manager, AccountProxyInterface $current_user) {
  $this->renderer = $renderer;
  $this->blockManager = $block_manager;
  $this->currentUser = $current_user;
}