function UserViewsHooks::viewsPluginsArgumentValidatorAlter
Implements hook_views_plugins_argument_validator_alter().
File
-
core/
modules/ user/ src/ Hook/ UserViewsHooks.php, line 19
Class
- UserViewsHooks
- Hook implementations for user.
Namespace
Drupal\user\HookCode
public function viewsPluginsArgumentValidatorAlter(array &$plugins) : void {
$plugins['entity:user']['title'] = t('User ID');
$plugins['entity:user']['class'] = 'Drupal\\user\\Plugin\\views\\argument_validator\\User';
$plugins['entity:user']['provider'] = 'user';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.