Issue #2669010 by Lendude: Views User ID filter title and description are very confusing

8.1.x
Nathaniel Catchpole 2016-02-16 13:01:25 +09:00
parent 7af90e5f30
commit 4f76cde461
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class UserViewsData extends EntityViewsData {
'empty field name' => \Drupal::config('user.settings')->get('anonymous'),
);
$data['users_field_data']['uid']['filter']['id'] = 'user_name';
$data['users_field_data']['uid']['filter']['title'] = $this->t('Name');
$data['users_field_data']['uid']['filter']['title'] = $this->t('Name (autocomplete)');
$data['users_field_data']['uid']['filter']['help'] = $this->t('The user or author name. Uses an autocomplete widget to find a user name, the actual filter uses the resulting user ID.');
$data['users_field_data']['uid']['relationship'] = array(
'title' => $this->t('Content authored'),
'help' => $this->t('Relate content to the user who created it. This relationship will create one record for each content item created by the user.'),