public function AreaPluginBase::init in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::init()
- 10 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::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 HandlerBase::init
1 call to AreaPluginBase::init()
- Entity::init in core/
modules/ views/ src/ Plugin/ views/ area/ Entity.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
1 method overrides AreaPluginBase::init()
- Entity::init in core/
modules/ views/ src/ Plugin/ views/ area/ Entity.php - Overrides Drupal\views\Plugin\views\HandlerBase::init().
File
- core/
modules/ views/ src/ Plugin/ views/ area/ AreaPluginBase.php, line 41
Class
- AreaPluginBase
- Base class for area handler plugins.
Namespace
Drupal\views\Plugin\views\areaCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
if ($this->areaType == 'empty') {
$this->options['empty'] = TRUE;
}
}