You are here

protected function DisplayPluginBase::mergePlugin in Drupal 8

Same name and namespace in other branches
  1. 9 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 2708

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