Gets all the views plugin definitions.
array An array of plugin definitions for all types.
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;
}