user.views.inc 395 B

123456789101112131415
  1. <?php
  2. /**
  3. * @file
  4. * Provide views data for user.module.
  5. */
  6. /**
  7. * Implements hook_views_plugins_argument_validator_alter().
  8. */
  9. function user_views_plugins_argument_validator_alter(array &$plugins) {
  10. $plugins['entity:user']['title'] = t('User ID');
  11. $plugins['entity:user']['class'] = 'Drupal\user\Plugin\views\argument_validator\User';
  12. $plugins['entity:user']['provider'] = 'user';
  13. }