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

Breadcrumb

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

function DisplayPluginBase::getAllHandlers

Gets all the handlers used by the display.

Parameters

bool $only_overrides: Whether to include only overridden handlers.

Return value

\Drupal\views\Plugin\views\ViewsHandlerInterface[]

1 call to DisplayPluginBase::getAllHandlers()
DisplayPluginBase::calculateDependencies in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Calculates dependencies for the configured plugin.

File

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

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

protected function getAllHandlers($only_overrides = FALSE) {
    $handler_types = Views::getHandlerTypes();
    $handlers = [];
    // Collect all dependencies of all handlers.
    foreach ($handler_types as $handler_type => $handler_type_info) {
        if ($only_overrides && $this->isDefaulted($handler_type_info['plural'])) {
            continue;
        }
        $handlers = array_merge($handlers, array_values($this->getHandlers($handler_type)));
    }
    return $handlers;
}

API Navigation

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