function AreaPluginBase::init
Same name 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()
- 11.x 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;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.