Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\user\UserViewsData.
|
||||
*/
|
||||
|
||||
namespace Drupal\user;
|
||||
|
||||
use Drupal\views\EntityViewsData;
|
||||
|
|
@ -20,7 +15,7 @@ class UserViewsData extends EntityViewsData {
|
|||
public function getViewsData() {
|
||||
$data = parent::getViewsData();
|
||||
|
||||
$data['users_field_data']['table']['base']['help'] = t('Users who have created accounts on your site.');
|
||||
$data['users_field_data']['table']['base']['help'] = $this->t('Users who have created accounts on your site.');
|
||||
$data['users_field_data']['table']['base']['access query tag'] = 'user_access';
|
||||
|
||||
$data['users_field_data']['table']['wizard_id'] = 'user';
|
||||
|
|
@ -32,31 +27,32 @@ 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'] = 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' => t('Content authored'),
|
||||
'help' => t('Relate content to the user who created it. This relationship will create one record for each content item created by the user.'),
|
||||
'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.'),
|
||||
'id' => 'standard',
|
||||
'base' => 'node_field_data',
|
||||
'base field' => 'uid',
|
||||
'field' => 'uid',
|
||||
'label' => t('nodes'),
|
||||
'label' => $this->t('nodes'),
|
||||
);
|
||||
|
||||
$data['users_field_data']['uid_raw'] = array(
|
||||
'help' => t('The raw numeric user ID.'),
|
||||
'help' => $this->t('The raw numeric user ID.'),
|
||||
'real field' => 'uid',
|
||||
'filter' => array(
|
||||
'title' => t('The user ID'),
|
||||
'title' => $this->t('The user ID'),
|
||||
'id' => 'numeric',
|
||||
),
|
||||
);
|
||||
|
||||
$data['users_field_data']['uid_representative'] = array(
|
||||
'relationship' => array(
|
||||
'title' => t('Representative node'),
|
||||
'label' => t('Representative node'),
|
||||
'help' => t('Obtains a single representative node for each user, according to a chosen sort criterion.'),
|
||||
'title' => $this->t('Representative node'),
|
||||
'label' => $this->t('Representative node'),
|
||||
'help' => $this->t('Obtains a single representative node for each user, according to a chosen sort criterion.'),
|
||||
'id' => 'groupwise_max',
|
||||
'relationship field' => 'uid',
|
||||
'outer field' => 'users_field_data.uid',
|
||||
|
|
@ -70,33 +66,33 @@ class UserViewsData extends EntityViewsData {
|
|||
|
||||
$data['users']['uid_current'] = array(
|
||||
'real field' => 'uid',
|
||||
'title' => t('Current'),
|
||||
'help' => t('Filter the view to the currently logged in user.'),
|
||||
'title' => $this->t('Current'),
|
||||
'help' => $this->t('Filter the view to the currently logged in user.'),
|
||||
'filter' => array(
|
||||
'id' => 'user_current',
|
||||
'type' => 'yes-no',
|
||||
),
|
||||
);
|
||||
|
||||
$data['users_field_data']['name']['help'] = t('The user or author name.');
|
||||
$data['users_field_data']['name']['help'] = $this->t('The user or author name.');
|
||||
$data['users_field_data']['name']['field']['default_formatter'] = 'user_name';
|
||||
$data['users_field_data']['name']['filter']['title'] = t('Name (raw)');
|
||||
$data['users_field_data']['name']['filter']['help'] = t('The user or author name. This filter does not check if the user exists and allows partial matching. Does not use autocomplete.');
|
||||
$data['users_field_data']['name']['filter']['title'] = $this->t('Name (raw)');
|
||||
$data['users_field_data']['name']['filter']['help'] = $this->t('The user or author name. This filter does not check if the user exists and allows partial matching. Does not use autocomplete.');
|
||||
|
||||
// Note that this field implements field level access control.
|
||||
$data['users_field_data']['mail']['help'] = t('Email address for a given user. This field is normally not shown to users, so be cautious when using it.');
|
||||
$data['users_field_data']['mail']['help'] = $this->t('Email address for a given user. This field is normally not shown to users, so be cautious when using it.');
|
||||
|
||||
$data['users_field_data']['langcode']['help'] = t('Original language of the user information');
|
||||
$data['users_field_data']['langcode']['help'] = t('Language of the translation of user information');
|
||||
$data['users_field_data']['langcode']['help'] = $this->t('Original language of the user information');
|
||||
$data['users_field_data']['langcode']['help'] = $this->t('Language of the translation of user information');
|
||||
|
||||
$data['users_field_data']['preferred_langcode']['title'] = t('Preferred language');
|
||||
$data['users_field_data']['preferred_langcode']['help'] = t('Preferred language of the user');
|
||||
$data['users_field_data']['preferred_admin_langcode']['title'] = t('Preferred admin language');
|
||||
$data['users_field_data']['preferred_admin_langcode']['help'] = t('Preferred administrative language of the user');
|
||||
$data['users_field_data']['preferred_langcode']['title'] = $this->t('Preferred language');
|
||||
$data['users_field_data']['preferred_langcode']['help'] = $this->t('Preferred language of the user');
|
||||
$data['users_field_data']['preferred_admin_langcode']['title'] = $this->t('Preferred admin language');
|
||||
$data['users_field_data']['preferred_admin_langcode']['help'] = $this->t('Preferred administrative language of the user');
|
||||
|
||||
$data['users_field_data']['created_fulldate'] = array(
|
||||
'title' => t('Created date'),
|
||||
'help' => t('Date in the form of CCYYMMDD.'),
|
||||
'title' => $this->t('Created date'),
|
||||
'help' => $this->t('Date in the form of CCYYMMDD.'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_fulldate',
|
||||
|
|
@ -104,8 +100,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['created_year_month'] = array(
|
||||
'title' => t('Created year + month'),
|
||||
'help' => t('Date in the form of YYYYMM.'),
|
||||
'title' => $this->t('Created year + month'),
|
||||
'help' => $this->t('Date in the form of YYYYMM.'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_year_month',
|
||||
|
|
@ -113,8 +109,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['created_year'] = array(
|
||||
'title' => t('Created year'),
|
||||
'help' => t('Date in the form of YYYY.'),
|
||||
'title' => $this->t('Created year'),
|
||||
'help' => $this->t('Date in the form of YYYY.'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_year',
|
||||
|
|
@ -122,8 +118,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['created_month'] = array(
|
||||
'title' => t('Created month'),
|
||||
'help' => t('Date in the form of MM (01 - 12).'),
|
||||
'title' => $this->t('Created month'),
|
||||
'help' => $this->t('Date in the form of MM (01 - 12).'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_month',
|
||||
|
|
@ -131,8 +127,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['created_day'] = array(
|
||||
'title' => t('Created day'),
|
||||
'help' => t('Date in the form of DD (01 - 31).'),
|
||||
'title' => $this->t('Created day'),
|
||||
'help' => $this->t('Date in the form of DD (01 - 31).'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_day',
|
||||
|
|
@ -140,22 +136,22 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['created_week'] = array(
|
||||
'title' => t('Created week'),
|
||||
'help' => t('Date in the form of WW (01 - 53).'),
|
||||
'title' => $this->t('Created week'),
|
||||
'help' => $this->t('Date in the form of WW (01 - 53).'),
|
||||
'argument' => array(
|
||||
'field' => 'created',
|
||||
'id' => 'date_week',
|
||||
),
|
||||
);
|
||||
|
||||
$data['users_field_data']['status']['filter']['label'] = t('Active');
|
||||
$data['users_field_data']['status']['filter']['label'] = $this->t('Active');
|
||||
$data['users_field_data']['status']['filter']['type'] = 'yes-no';
|
||||
|
||||
$data['users_field_data']['changed']['title'] = t('Updated date');
|
||||
$data['users_field_data']['changed']['title'] = $this->t('Updated date');
|
||||
|
||||
$data['users_field_data']['changed_fulldate'] = array(
|
||||
'title' => t('Updated date'),
|
||||
'help' => t('Date in the form of CCYYMMDD.'),
|
||||
'title' => $this->t('Updated date'),
|
||||
'help' => $this->t('Date in the form of CCYYMMDD.'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_fulldate',
|
||||
|
|
@ -163,8 +159,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['changed_year_month'] = array(
|
||||
'title' => t('Updated year + month'),
|
||||
'help' => t('Date in the form of YYYYMM.'),
|
||||
'title' => $this->t('Updated year + month'),
|
||||
'help' => $this->t('Date in the form of YYYYMM.'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_year_month',
|
||||
|
|
@ -172,8 +168,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['changed_year'] = array(
|
||||
'title' => t('Updated year'),
|
||||
'help' => t('Date in the form of YYYY.'),
|
||||
'title' => $this->t('Updated year'),
|
||||
'help' => $this->t('Date in the form of YYYY.'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_year',
|
||||
|
|
@ -181,8 +177,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['changed_month'] = array(
|
||||
'title' => t('Updated month'),
|
||||
'help' => t('Date in the form of MM (01 - 12).'),
|
||||
'title' => $this->t('Updated month'),
|
||||
'help' => $this->t('Date in the form of MM (01 - 12).'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_month',
|
||||
|
|
@ -190,8 +186,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['changed_day'] = array(
|
||||
'title' => t('Updated day'),
|
||||
'help' => t('Date in the form of DD (01 - 31).'),
|
||||
'title' => $this->t('Updated day'),
|
||||
'help' => $this->t('Date in the form of DD (01 - 31).'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_day',
|
||||
|
|
@ -199,8 +195,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users_field_data']['changed_week'] = array(
|
||||
'title' => t('Updated week'),
|
||||
'help' => t('Date in the form of WW (01 - 53).'),
|
||||
'title' => $this->t('Updated week'),
|
||||
'help' => $this->t('Date in the form of WW (01 - 53).'),
|
||||
'argument' => array(
|
||||
'field' => 'changed',
|
||||
'id' => 'date_week',
|
||||
|
|
@ -208,8 +204,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users']['data'] = array(
|
||||
'title' => t('Data'),
|
||||
'help' => t('Provides access to the user data service.'),
|
||||
'title' => $this->t('Data'),
|
||||
'help' => $this->t('Provides access to the user data service.'),
|
||||
'real field' => 'uid',
|
||||
'field' => array(
|
||||
'id' => 'user_data',
|
||||
|
|
@ -217,14 +213,14 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['users']['user_bulk_form'] = array(
|
||||
'title' => t('Bulk update'),
|
||||
'help' => t('Add a form element that lets you run operations on multiple users.'),
|
||||
'title' => $this->t('Bulk update'),
|
||||
'help' => $this->t('Add a form element that lets you run operations on multiple users.'),
|
||||
'field' => array(
|
||||
'id' => 'user_bulk_form',
|
||||
),
|
||||
);
|
||||
|
||||
$data['user__roles']['table']['group'] = t('User');
|
||||
$data['user__roles']['table']['group'] = $this->t('User');
|
||||
|
||||
$data['user__roles']['table']['join'] = array(
|
||||
'users_field_data' => array(
|
||||
|
|
@ -234,8 +230,8 @@ class UserViewsData extends EntityViewsData {
|
|||
);
|
||||
|
||||
$data['user__roles']['roles_target_id'] = array(
|
||||
'title' => t('Roles'),
|
||||
'help' => t('Roles that a user belongs to.'),
|
||||
'title' => $this->t('Roles'),
|
||||
'help' => $this->t('Roles that a user belongs to.'),
|
||||
'field' => array(
|
||||
'id' => 'user_roles',
|
||||
'no group by' => TRUE,
|
||||
|
|
@ -248,15 +244,15 @@ class UserViewsData extends EntityViewsData {
|
|||
'id' => 'user__roles_rid',
|
||||
'name table' => 'role',
|
||||
'name field' => 'name',
|
||||
'empty field name' => t('No role'),
|
||||
'empty field name' => $this->t('No role'),
|
||||
'zero is null' => TRUE,
|
||||
'numeric' => TRUE,
|
||||
),
|
||||
);
|
||||
|
||||
$data['user__roles']['permission'] = array(
|
||||
'title' => t('Permission'),
|
||||
'help' => t('The user permissions.'),
|
||||
'title' => $this->t('Permission'),
|
||||
'help' => $this->t('The user permissions.'),
|
||||
'field' => array(
|
||||
'id' => 'user_permissions',
|
||||
'no group by' => TRUE,
|
||||
|
|
|
|||
Reference in a new issue