diff --git a/core/modules/node/config/schema/node.views.schema.yml b/core/modules/node/config/schema/node.views.schema.yml index 0b16f94..942e89b 100644 --- a/core/modules/node/config/schema/node.views.schema.yml +++ b/core/modules/node/config/schema/node.views.schema.yml @@ -157,7 +157,7 @@ views.field.node_path: label: 'Use absolute link (begins with "http://")' views.field.node_revision: - type: views_field + type: views.field.node label: 'Node revision' mapping: link_to_node_revision: diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php index 48ef458..d8f4b32 100644 --- a/core/modules/node/src/Plugin/views/wizard/Node.php +++ b/core/modules/node/src/Plugin/views/wizard/Node.php @@ -149,7 +149,7 @@ protected function defaultDisplayOptions() { $display_options['fields']['title']['hide_empty'] = 0; $display_options['fields']['title']['empty_zero'] = 0; $display_options['fields']['title']['link_to_node'] = 1; - $display_options['fields']['title']['plugin_id'] = 'standard'; + $display_options['fields']['title']['plugin_id'] = 'node'; return $display_options; } diff --git a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php index ae01ab3..82ba275 100644 --- a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php +++ b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php @@ -128,7 +128,7 @@ protected function defaultDisplayOptions() { $display_options['fields']['title']['empty_zero'] = 0; $display_options['fields']['title']['link_to_node'] = 0; $display_options['fields']['title']['link_to_node_revision'] = 1; - $display_options['fields']['title']['plugin_id'] = 'standard'; + $display_options['fields']['title']['plugin_id'] = 'node_revision'; return $display_options; } diff --git a/core/modules/views/src/Tests/NewViewConfigSchemaTest.php b/core/modules/views/src/Tests/NewViewConfigSchemaTest.php index aae9970..2db1df0 100644 --- a/core/modules/views/src/Tests/NewViewConfigSchemaTest.php +++ b/core/modules/views/src/Tests/NewViewConfigSchemaTest.php @@ -36,13 +36,15 @@ class NewViewConfigSchemaTest extends ViewTestBase { public function testNewView() { $this->drupalLogin($this->drupalCreateUser(array('administer views'))); - // Create a new view in the UI. - $edit = array(); - $edit['label'] = $this->randomString(); - $edit['id'] = strtolower($this->randomMachineName()); - $edit['show[wizard_key]'] = 'node'; - $edit['description'] = $this->randomString(); - $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit')); + // Create two new views in the UI. + foreach(array('node', 'node_revision') as $wizard_key) { + $edit = array(); + $edit['label'] = $this->randomString(); + $edit['id'] = strtolower($this->randomMachineName()); + $edit['show[wizard_key]'] = $wizard_key; + $edit['description'] = $this->randomString(); + $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit')); + } } }