You are here

public function ViewsBlockArea::__construct in Views block area 8

Constructs a Handler object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides HandlerBase::__construct

File

src/Plugin/views/area/ViewsBlockArea.php, line 61
Contains \Drupal\block\Plugin\views\area\Block.

Class

ViewsBlockArea
Provides an area handler which renders a block entity in a certain view mode.

Namespace

Drupal\views_block_area\Plugin\views\area

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockManagerInterface $block_manager, EntityRepositoryInterface $entity_repository = NULL, RendererInterface $renderer) {
  $this->blockManager = $block_manager;
  $this->entityRepository = $entity_repository;
  $this->renderer = $renderer;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}