function DisplayPluginBase::getOption

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getOption()
  2. 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getOption()
  3. 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getOption()
8 calls to DisplayPluginBase::getOption()
PathPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Provide a form to edit options for this plugin.
PathPluginBase::collectRoutes in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Adds the route entry of a view to the collection.
PathPluginBase::getMenuLinks in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Gets menu links, if this display provides some.
PathPluginBase::getPath in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Returns the base path to use for this display.
PathPluginBase::getRoute in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Generates a route entry for a given view and display.

... See full list

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 776

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function getOption($option) {
  if ($this->isDefaulted($option)) {
    return $this->default_display
      ->getOption($option);
  }
  if (isset($this->options[$option]) || array_key_exists($option, $this->options)) {
    return $this->options[$option];
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.