Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserViewsHooks.php

class UserViewsHooks

Hook implementations for user.

Hierarchy

  • class \Drupal\user\Hook\UserViewsHooks

Expanded class hierarchy of UserViewsHooks

File

core/modules/user/src/Hook/UserViewsHooks.php, line 10

Namespace

Drupal\user\Hook
View source
class UserViewsHooks {
    
    /**
     * @file
     * Provide views data for user.module.
     */
    
    /**
     * Implements hook_views_plugins_argument_validator_alter().
     */
    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';
    }

}

Members

Title Sort descending Modifiers Object type Summary
UserViewsHooks::viewsPluginsArgumentValidatorAlter public function Implements hook_views_plugins_argument_validator_alter().

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal