UserViewsHooks.php
Namespace
Drupal\user\HookFile
-
core/
modules/ user/ src/ Hook/ UserViewsHooks.php
View source
<?php
namespace Drupal\user\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for user.
*/
class UserViewsHooks {
/**
* @file
* Provide views data for user.module.
*/
/**
* Implements hook_views_plugins_argument_validator_alter().
*/
public function viewsPluginsArgumentValidatorAlter(array &$plugins) {
$plugins['entity:user']['title'] = t('User ID');
$plugins['entity:user']['class'] = 'Drupal\\user\\Plugin\\views\\argument_validator\\User';
$plugins['entity:user']['provider'] = 'user';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UserViewsHooks | Hook implementations for user. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.