public function DisplayPluginBase::getOption

Intelligently get an option either from this display or from the default display, if directed to do so.

47 calls to DisplayPluginBase::getOption()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 784
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 getOption($option) {
  if ($this
    ->isDefaulted($option)) {
    return $this->default_display
      ->getOption($option);
  }
  if (array_key_exists($option, $this->options)) {
    return $this->options[$option];
  }
}