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()
Attachment::attachTo in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Attach to another view.
Attachment::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Provide the default form for setting options.
Attachment::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Provide the summary for attachment options in the views UI.
Attachment::renderPager in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Not all display plugins will suppert pager rendering.
Block::buildOptionsForm in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Provide the default form for setting options.

... See full list

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