function StylePluginBase::evenEmpty

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

Determines if the style plugin is rendered even if the view is empty.

1 call to StylePluginBase::evenEmpty()
Table::evenEmpty in core/modules/views/src/Plugin/views/style/Table.php
Determines if the style plugin is rendered even if the view is empty.
2 methods override StylePluginBase::evenEmpty()
EntityReference::evenEmpty in core/modules/views/src/Plugin/views/style/EntityReference.php
Determines if the style plugin is rendered even if the view is empty.
Table::evenEmpty in core/modules/views/src/Plugin/views/style/Table.php
Determines if the style plugin is rendered even if the view is empty.

File

core/modules/views/src/Plugin/views/style/StylePluginBase.php, line 262

Class

StylePluginBase
Base class for views style plugins.

Namespace

Drupal\views\Plugin\views\style

Code

public function evenEmpty() {
    return !empty($this->definition['even empty']);
}

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