function hook_views_plugins_field_alter

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

Modify the list of available views field handler plugins.

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

Parameters

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

See also

\Drupal\views\Plugin\ViewsHandlerManager

Related topics

1 function implements hook_views_plugins_field_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.

ViewsTestConfigHooks::viewsPluginsFieldAlter in core/modules/views/tests/modules/views_test_config/src/Hook/ViewsTestConfigHooks.php
Implements hook_views_plugins_field_alter().

File

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

Code

function hook_views_plugins_field_alter(array &$plugins) {
    // Change the 'title' handler class.
    $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
}

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