diff --git a/core/modules/comment/config/install/views.view.comment.yml b/core/modules/comment/config/install/views.view.comment.yml index dc02647..1497da4 100644 --- a/core/modules/comment/config/install/views.view.comment.yml +++ b/core/modules/comment/config/install/views.view.comment.yml @@ -82,13 +82,6 @@ display: separator: '' empty_column: false responsive: priority-medium - title: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: priority-low changed: sortable: true default_sort_order: desc @@ -121,23 +114,11 @@ display: empty_table: false row: type: fields - relationships: - node: - id: node - table: comment_field_data - field: node - relationship: none - group_type: group - admin_label: Content - required: true - entity_type: comment - plugin_id: standard fields: comment_bulk_form: id: comment_bulk_form table: comment field: comment_bulk_form - relationship: none group_type: group admin_label: '' label: '' @@ -161,7 +142,6 @@ display: id: subject table: comment_field_data field: subject - relationship: none group_type: group admin_label: '' label: Title @@ -183,7 +163,6 @@ display: id: name table: comment_field_data field: name - relationship: none group_type: group admin_label: '' label: Author @@ -200,31 +179,10 @@ display: entity_type: comment entity_field: name plugin_id: comment_username - title: - id: title - table: node_field_data - field: title - relationship: node - group_type: group - admin_label: '' - label: 'Posted in' - exclude: false - alter: - alter_text: false - element_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - link_to_node: true - plugin_id: node - entity_type: node changed: id: changed table: comment_field_data field: changed - relationship: none group_type: group admin_label: '' label: Updated @@ -247,7 +205,6 @@ display: id: edit_comment table: comment field: edit_comment - relationship: none group_type: group admin_label: '' label: '' @@ -269,7 +226,6 @@ display: id: delete_comment table: comment field: delete_comment - relationship: none group_type: group admin_label: '' label: '' @@ -290,7 +246,6 @@ display: id: dropbutton table: views field: dropbutton - relationship: none group_type: group admin_label: '' label: Operations @@ -309,7 +264,6 @@ display: action_bulk_form: '0' subject: '0' name: '0' - title: '0' changed: '0' destination: true plugin_id: dropbutton @@ -319,7 +273,6 @@ display: id: status table: comment_field_data field: status - relationship: none group_type: group admin_label: '' operator: '=' @@ -358,7 +311,6 @@ display: id: changed table: comment_field_data field: changed - relationship: none group_type: group admin_label: '' order: DESC @@ -422,7 +374,6 @@ display: id: status table: comment_field_data field: status - relationship: none group_type: group admin_label: '' operator: '=' diff --git a/core/modules/views/src/Tests/DefaultViewsTest.php b/core/modules/views/src/Tests/DefaultViewsTest.php index 8a06886..b597393 100644 --- a/core/modules/views/src/Tests/DefaultViewsTest.php +++ b/core/modules/views/src/Tests/DefaultViewsTest.php @@ -109,14 +109,14 @@ protected function setUp() { ); entity_create('comment', $comment)->save(); - $comment = array( + $unpublished_comment = array( 'uid' => $user->id(), 'status' => CommentInterface::NOT_PUBLISHED, 'entity_id' => $node->id(), 'entity_type' => 'node', 'field_name' => 'comment' ); - entity_create('comment', $comment)->save(); + entity_create('comment', $unpublished_comment)->save(); } // Some views, such as the "Who's Online" view, only return results if at