You are here

public static function Views::getPluginDefinitions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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/src/Tests/PluginInstanceTest.php
Performs setup tasks before each individual test method is run.
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 176
Contains \Drupal\views\Views.

Class

Views
Static service container wrapper for views.

Namespace

Drupal\views

Code

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