function views_get_plugin_definitions

Gets all the views plugin definitions.

Return value

array An array of plugin definitions for all types.

3 calls to views_get_plugin_definitions()
PluginInstanceTest::setUp in drupal/core/modules/views/lib/Drupal/views/Tests/PluginInstanceTest.php
Sets up Drupal unit test environment.
views_plugin_list in drupal/core/modules/views/views.module
Returns a list of plugins and metadata about them.
views_theme in drupal/core/modules/views/views.module
Implement hook_theme(). Register views theming functions.

File

drupal/core/modules/views/views.module, line 1344
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_get_plugin_definitions() {
  $container = drupal_container();
  $plugins = array();
  foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
    $plugins[$plugin_type] = $container
      ->get("plugin.manager.views.{$plugin_type}")
      ->getDefinitions();
  }
  return $plugins;
}