function 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\areaCode
public function init(ViewExecutable $view, DisplayPluginBase $display, ?array &$options = NULL) {
parent::init($view, $display, $options);
$this->entityType = $this->definition['entity_type'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.