You are here

protected function DisplayPluginBase::mergePlugin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 2605
Contains \Drupal\views\Plugin\views\display\DisplayPluginBase.

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