SearchUserHooks.php
Same filename and directory in other branches
Namespace
Drupal\search_user\HookFile
-
core/
modules/ search/ modules/ search_user/ src/ Hook/ SearchUserHooks.php
View source
<?php
namespace Drupal\search_user\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for Search User.
*/
class SearchUserHooks {
/**
* Implements hook_search_plugin_alter().
*/
public function searchPluginAlter(array &$definitions) : void {
if (isset($definitions['user_search'])) {
$definitions['user_search']['class'] = 'Drupal\\search_user\\Plugin\\Search\\SearchUser';
}
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| SearchUserHooks | Hook implementations for Search User. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.