function AreaPluginBase::isEmpty

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::isEmpty()
  2. 8.9.x core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::isEmpty()
  3. 10 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::isEmpty()

Does that area have nothing to show.

This method should be overridden by more complex handlers where the output is not static and maybe itself be empty if it's rendered.

Return value

bool Return TRUE if the area is empty, else FALSE.

1 call to AreaPluginBase::isEmpty()
View::isEmpty in core/modules/views/src/Plugin/views/area/View.php
Does that area have nothing to show.
1 method overrides AreaPluginBase::isEmpty()
View::isEmpty in core/modules/views/src/Plugin/views/area/View.php
Does that area have nothing to show.

File

core/modules/views/src/Plugin/views/area/AreaPluginBase.php, line 121

Class

AreaPluginBase
Base class for area handler plugins.

Namespace

Drupal\views\Plugin\views\area

Code

public function isEmpty() {
    return empty($this->options['empty']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.