public function DisplayPluginBase::setOption

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

11 calls to DisplayPluginBase::setOption()
Attachment::submitOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Block::submitOptionsForm in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
DisplayPluginBase::initDisplay in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
DisplayPluginBase::mergeHandler in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Merges handlers default values.
DisplayPluginBase::mergePlugin in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Merges plugins default values.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 959
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 setOption($option, $value) {
  if ($this
    ->isDefaulted($option)) {
    return $this->default_display
      ->setOption($option, $value);
  }

  // Set this in two places: On the handler where we'll notice it
  // but also on the display object so it gets saved. This should
  // only be a temporary fix.
  $this->display['display_options'][$option] = $value;
  return $this->options[$option] = $value;
}