function SearchUserHooks::searchPluginAlter

Same name and namespace in other branches
  1. 11.x core/modules/search/modules/search_user/src/Hook/SearchUserHooks.php \Drupal\search_user\Hook\SearchUserHooks::searchPluginAlter()

Implements hook_search_plugin_alter().

Attributes

#[Hook('search_plugin_alter')]

File

core/modules/search/modules/search_user/src/Hook/SearchUserHooks.php, line 15

Class

SearchUserHooks
Hook implementations for Search User.

Namespace

Drupal\search_user\Hook

Code

public function searchPluginAlter(array &$definitions) : void {
  if (isset($definitions['user_search'])) {
    $definitions['user_search']['class'] = 'Drupal\\search_user\\Plugin\\Search\\SearchUser';
  }
}

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