You are here

public static function Views::getPluginDefinitions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Views.php \Drupal\views\Views::getPluginDefinitions()

Gets all the views plugin definitions.

Return value

array An array of plugin definitions for all types.

2 calls to Views::getPluginDefinitions()
PluginInstanceTest::setUp in core/modules/views/tests/src/Kernel/PluginInstanceTest.php
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;
}