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

Breadcrumb

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

function DisplayPluginBase::mergePlugin

Merges plugins default values.

Parameters

string $type: The name of the plugin type option.

File

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

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

protected function mergePlugin($type) {
    if (($options = $this->getOption($type)) && isset($options['options'])) {
        $plugin = $this->getPlugin($type);
        $options['options'] = $options['options'] + $plugin->options;
        $this->setOption($type, $options);
    }
}

API Navigation

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