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

Breadcrumb

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

function DisplayPluginBase::mergeHandler

Merges handlers default values.

Parameters

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

File

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

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

protected function mergeHandler($type) {
    $types = ViewExecutable::getHandlerTypes();
    $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);
}

API Navigation

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