You are here

public function Entity::init in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::init()

Overrides Drupal\views\Plugin\views\HandlerBase::init().

Make sure that no result area handlers are set to be shown when the result is empty.

Overrides AreaPluginBase::init

File

core/modules/views/src/Plugin/views/area/Entity.php, line 91

Class

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

Namespace

Drupal\views\Plugin\views\area

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->entityType = $this->definition['entity_type'];
}