diff --git a/core/modules/comment/config/optional/views.view.comment.yml b/core/modules/comment/config/optional/views.view.comment.yml index 769512f..5581c4d 100644 --- a/core/modules/comment/config/optional/views.view.comment.yml +++ b/core/modules/comment/config/optional/views.view.comment.yml @@ -425,116 +425,14 @@ display: entity_type: comment entity_field: changed plugin_id: date - edit_comment: - id: edit_comment + operations: + id: operations table: comment - field: edit_comment + field: operations relationship: none group_type: group admin_label: '' - label: '' - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: Edit - entity_type: comment - plugin_id: entity_link_edit - delete_comment: - id: delete_comment - table: comment - field: delete_comment - relationship: none - group_type: group - admin_label: '' - label: '' - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: false - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: Delete - entity_type: comment - plugin_id: entity_link_delete - dropbutton: - id: dropbutton - table: views - field: dropbutton - relationship: none - group_type: group - admin_label: '' - label: Opertaions + label: Operations exclude: false alter: alter_text: false @@ -575,15 +473,9 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - fields: - delete_comment: delete_comment - edit_comment: edit_comment - comment_bulk_form: '0' - subject: '0' - name: '0' - changed: '0' destination: true - plugin_id: dropbutton + entity_type: comment + plugin_id: entity_operations filters: status: id: status diff --git a/core/modules/comment/src/Entity/Comment.php b/core/modules/comment/src/Entity/Comment.php index bd3fbfc..5525765 100644 --- a/core/modules/comment/src/Entity/Comment.php +++ b/core/modules/comment/src/Entity/Comment.php @@ -35,6 +35,7 @@ * "default" = "Drupal\comment\CommentForm", * "delete" = "Drupal\comment\Form\DeleteForm" * }, + * "list_builder" = "Drupal\Core\Entity\EntityListBuilder", * "translation" = "Drupal\comment\CommentTranslationHandler" * }, * base_table = "comment",