Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DisplayPluginBase.php

function DisplayPluginBase::setOption

Overrides DisplayPluginInterface::setOption

11 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.

... See full list

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal