function DisplayPluginBase::mergePlugin

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::mergePlugin()
  2. 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::mergePlugin()
  3. 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\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 2710

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.