public function BlocksController::__construct in Gutenberg 8
Same name and namespace in other branches
- 8.2 src/Controller/BlocksController.php \Drupal\gutenberg\Controller\BlocksController::__construct()
BlocksController constructor.
Parameters
\Drupal\Core\Block\BlockManagerInterface $block_manager: Block manager service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.
\Drupal\gutenberg\BlocksRendererHelper $blocks_renderer: Blocks renderer helper service.
File
- src/
Controller/ BlocksController.php, line 49
Class
- BlocksController
- Returns responses for our blocks routes.
Namespace
Drupal\gutenberg\ControllerCode
public function __construct(BlockManagerInterface $block_manager, ConfigFactoryInterface $config_factory, BlocksRendererHelper $blocks_renderer) {
$this->blockManager = $block_manager;
$this->configFactory = $config_factory;
$this->blocksRenderer = $blocks_renderer;
}