function DisplayPluginBase::isDefaulted

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isDefaulted()
  2. 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isDefaulted()
  3. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isDefaulted()

Overrides DisplayPluginInterface::isDefaulted

4 calls to DisplayPluginBase::isDefaulted()
DisplayPluginBase::getAllHandlers in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Gets all the handlers used by the display.
DisplayPluginBase::getAllPlugins in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Gets all the plugins used by the display.
DisplayPluginBase::getOption in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Gets an option, from this display or the default display.
DisplayPluginBase::setOption in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Sets an option, on this display or the default display.

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 770

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function isDefaulted($option) {
    return !$this->isDefaultDisplay() && !empty($this->default_display) && !empty($this->options['defaults'][$option]);
}

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