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

Modify the list of available views relationship 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

File

core/modules/views/views.api.php, line 1223
Describes hooks and plugins provided by the Views module.

Code

function hook_views_plugins_relationship_alter(array &$plugins) {

  // Change the 'title' handler class.
  $plugins['title']['class'] = 'Drupal\\example\\ExampleClass';
}