function DisplayPluginBase::setOption
Sets an option, on this display or the default display.
Overrides DisplayPluginInterface::setOption
12 calls to DisplayPluginBase::setOption()
- Attachment::submitOptionsForm in core/modules/ views/ src/ Plugin/ views/ display/ Attachment.php 
- Perform any necessary changes to the form values prior to storage.
- Block::submitOptionsForm in core/modules/ views/ src/ Plugin/ views/ display/ Block.php 
- Perform any necessary changes to the form values prior to storage.
- DisplayPluginBase::mergeHandler in core/modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php 
- Merges handlers default values.
- DisplayPluginBase::mergePlugin in core/modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php 
- Merges plugins default values.
- DisplayPluginBase::overrideOption in core/modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php 
- Set an option and force it to be an override.
File
- 
              core/modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 1002 
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
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;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
