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

Breadcrumb

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

function Views::getPluginDefinitions

Gets all the views plugin definitions.

Return value

array An array of plugin definitions for all types.

1 call to Views::getPluginDefinitions()
Views::pluginList in core/modules/views/src/Views.php
Returns a list of plugins and metadata about them.

File

core/modules/views/src/Views.php, line 172

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

public static function getPluginDefinitions() {
    $plugins = [];
    foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
        $plugins[$plugin_type] = static::pluginManager($plugin_type)->getDefinitions();
    }
    return $plugins;
}

API Navigation

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