function views_get_plugin_definition in Views (for Drupal 7) 8.3
Gets the plugin definition from a plugin type with a specific ID.
Parameters
string $type: The plugin type, e.g., 'access' or 'display'.
string $plugin_id: The name of the plugin, e.g., 'standard'.
Return value
array A plugin definition.
5 calls to views_get_plugin_definition()
- ViewStorage::addDisplay in lib/
Drupal/ views/ ViewStorage.php - Adds a new display handler to the view, automatically creating an ID.
- views_add_contextual_links in ./
views.module - Adds contextual links associated with a view display to a renderable array.
- views_get_applicable_views in ./
views.module - Return a list of all views and display IDs that have a particular setting in their display's plugin settings.
- views_ui_get_wizard in views_ui/
views_ui.module - Fetch metadata on a specific views ui wizard plugin.
- WizardPluginBase::default_display_filters_user in lib/
Drupal/ views/ Plugin/ views/ wizard/ WizardPluginBase.php - Retrieves filter information based on user input for the default display.
File
- ./
views.module, line 1438 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_get_plugin_definition($type, $plugin_id) {
return drupal_container()
->get("plugin.manager.views.{$type}")
->getDefinition($plugin_id);
}