protected function DisplayPluginBase::mergeHandler

Merges handlers default values.

Parameters

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

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 2803
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

protected function mergeHandler($type) {
  $types = ViewExecutable::viewsHandlerTypes();
  $options = $this
    ->getOption($types[$type]['plural']);
  foreach ($this
    ->getHandlers($type) as $id => $handler) {
    if (isset($options[$id])) {
      $options[$id] = $options[$id] + $handler->options;
    }
  }
  $this
    ->setOption($types[$type]['plural'], $options);
}