You are here

public function AreaPluginBase::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 46
Contains \Drupal\views\Plugin\views\area\AreaPluginBase.

Class

AreaPluginBase
Base class for area handler plugins.

Namespace

Drupal\views\Plugin\views\area

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  if ($this->areaType == 'empty') {
    $this->options['empty'] = TRUE;
  }
}