function hook_views_plugins_display_alter

Same name and namespace in other branches
  1. 8.9.x core/modules/views/views.api.php \hook_views_plugins_display_alter()
  2. 10 core/modules/views/views.api.php \hook_views_plugins_display_alter()
  3. 11.x core/modules/views/views.api.php \hook_views_plugins_display_alter()

Modify the list of available views display plugins.

This hook may be used to modify plugin properties after they have been specified by other modules.

Parameters

array $plugins: An array of all the existing plugin definitions, passed by reference.

See also

\Drupal\views\Plugin\ViewsPluginManager

Related topics

2 functions implement hook_views_plugins_display_alter()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

ViewsUiHooks::viewsPluginsDisplayAlter in core/modules/views_ui/src/Hook/ViewsUiHooks.php
Implements hook_views_plugins_display_alter().
views_ui_views_plugins_display_alter in core/modules/views_ui/views_ui.module
Implements hook_views_plugins_display_alter().

File

core/modules/views/views.api.php, line 1030

Code

function hook_views_plugins_display_alter(array &$plugins) {
    // Alter the title of an existing plugin.
    $plugins['rest_export']['title'] = t('Export');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.