Determine if a given option is set to use the default display or the
current display
Return value
TRUE for the default display
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]);
}