function View::isEmpty
Same name and namespace in other branches
- 8.9.x core/modules/views/src/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::isEmpty()
- 10 core/modules/views/src/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::isEmpty()
- 11.x core/modules/views/src/Plugin/views/area/View.php \Drupal\views\Plugin\views\area\View::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.
Overrides AreaPluginBase::isEmpty
File
-
core/
modules/ views/ src/ Plugin/ views/ area/ View.php, line 140
Class
- View
- Views area handlers. Insert a view inside of an area.
Namespace
Drupal\views\Plugin\views\areaCode
public function isEmpty() {
if (isset($this->isEmpty)) {
return $this->isEmpty;
}
else {
return parent::isEmpty();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.