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

Breadcrumb

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

function DisplayPluginBase::getOption

Overrides DisplayPluginInterface::getOption

52 calls to DisplayPluginBase::getOption()
Attachment::attachTo in core/modules/views/src/Plugin/views/display/Attachment.php
Allows displays to attach to other views.
Attachment::buildOptionsForm in core/modules/views/src/Plugin/views/display/Attachment.php
Provide the default form for setting options.
Attachment::optionsSummary in core/modules/views/src/Plugin/views/display/Attachment.php
Provide the summary for attachment options in the views UI.
Attachment::renderPager in core/modules/views/src/Plugin/views/display/Attachment.php
Checks to see if the display plugins support pager rendering.
Block::blockForm in core/modules/views/src/Plugin/views/display/Block.php
Adds the configuration form elements specific to this views block plugin.

... See full list

File

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

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 (\array_key_exists($option, $this->options)) {
        return $this->options[$option];
    }
}

API Navigation

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