Gets all the views plugin definitions.
array An array of plugin definitions for all types.
function views_get_plugin_definitions() {
  $plugins = array();
  foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
    $plugins[$plugin_type] = Views::pluginManager($plugin_type)
      ->getDefinitions();
  }
  return $plugins;
}