diff --git a/core/modules/user/src/Plugin/views/wizard/Users.php b/core/modules/user/src/Plugin/views/wizard/Users.php index 92b29a9..5e14a01 100644 --- a/core/modules/user/src/Plugin/views/wizard/Users.php +++ b/core/modules/user/src/Plugin/views/wizard/Users.php @@ -41,7 +41,8 @@ class Users extends WizardPluginBase { 'alter' => array( 'alter_text' => TRUE, 'text' => 'user/[uid]' - ) + ), + 'plugin_id' => 'user', ); /** @@ -52,7 +53,8 @@ class Users extends WizardPluginBase { 'value' => TRUE, 'table' => 'users_field_data', 'field' => 'status', - 'provider' => 'user' + 'provider' => 'user', + 'plugin_id' => 'boolean', ) ); @@ -64,7 +66,7 @@ protected function defaultDisplayOptions() { // Add permission-based access control. $display_options['access']['type'] = 'perm'; - $display_options['access']['perm'] = 'access user profiles'; + $display_options['access']['options']['perm'] = 'access user profiles'; // Remove the default fields, since we are customizing them here. unset($display_options['fields']); @@ -86,6 +88,7 @@ protected function defaultDisplayOptions() { $display_options['fields']['name']['empty_zero'] = 0; $display_options['fields']['name']['link_to_user'] = 1; $display_options['fields']['name']['overwrite_anonymous'] = 0; + $display_options['fields']['name']['plugin_id'] = 'user_name'; return $display_options; } diff --git a/core/modules/views/src/Tests/NewViewConfigSchemaTest.php b/core/modules/views/src/Tests/NewViewConfigSchemaTest.php index 2db1df0..6215306 100644 --- a/core/modules/views/src/Tests/NewViewConfigSchemaTest.php +++ b/core/modules/views/src/Tests/NewViewConfigSchemaTest.php @@ -31,13 +31,13 @@ class NewViewConfigSchemaTest extends ViewTestBase { public static $modules = array('views_ui', 'node'); /** - * Tests creating a brand new view. + * Tests creating brand new views. */ - public function testNewView() { + public function testNewViews() { $this->drupalLogin($this->drupalCreateUser(array('administer views'))); // Create two new views in the UI. - foreach(array('node', 'node_revision') as $wizard_key) { + foreach(array('node', 'node_revision', 'users') as $wizard_key) { $edit = array(); $edit['label'] = $this->randomString(); $edit['id'] = strtolower($this->randomMachineName());