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()

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;
}