public function DisplayPluginBase::isDefaulted

Determine if a given option is set to use the default display or the current display

Return value

TRUE for the default display

2 calls to DisplayPluginBase::isDefaulted()
DisplayPluginBase::getOption in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Intelligently get an option either from this display or from the default display, if directed to do so.
DisplayPluginBase::setOption in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Intelligently set an option either from this display or from the default display, if directed to do so.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 776
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

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