You are here

public function DisplayPluginBase::isDefaulted in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isDefaulted()

Determines if an option is set to use the default or current display.

Return value

TRUE for the default display.

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]);
}