function Views::getPluginDefinitions
Same name in other branches
- 9 core/modules/views/src/Views.php \Drupal\views\Views::getPluginDefinitions()
- 8.9.x core/modules/views/src/Views.php \Drupal\views\Views::getPluginDefinitions()
- 10 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\viewsCode
public static function getPluginDefinitions() {
$plugins = [];
foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
$plugins[$plugin_type] = static::pluginManager($plugin_type)->getDefinitions();
}
return $plugins;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.