X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FCommentViewsData.php;h=ead61c1a33c467854d09049a1029e060c953c861;hp=52af015d59cae94a8cc6851b898e1366cc5dafe1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/comment/src/CommentViewsData.php b/web/core/modules/comment/src/CommentViewsData.php index 52af015d5..ead61c1a3 100644 --- a/web/core/modules/comment/src/CommentViewsData.php +++ b/web/core/modules/comment/src/CommentViewsData.php @@ -23,6 +23,7 @@ class CommentViewsData extends EntityViewsData { $data['comment_field_data']['subject']['title'] = $this->t('Title'); $data['comment_field_data']['subject']['help'] = $this->t('The title of the comment.'); + $data['comment_field_data']['subject']['field']['default_formatter'] = 'comment_permalink'; $data['comment_field_data']['name']['title'] = $this->t('Author'); $data['comment_field_data']['name']['help'] = $this->t("The name of the comment's author. Can be rendered as a link to the author's homepage."); @@ -168,6 +169,17 @@ class CommentViewsData extends EntityViewsData { ], ]; + $data['comment_field_data']['entity_id']['field']['id'] = 'commented_entity'; + unset($data['comment_field_data']['entity_id']['relationship']); + + $data['comment']['comment_bulk_form'] = [ + 'title' => $this->t('Comment operations bulk form'), + 'help' => $this->t('Add a form element that lets you run operations on multiple comments.'), + 'field' => [ + 'id' => 'comment_bulk_form', + ], + ]; + $data['comment_field_data']['thread']['field'] = [ 'title' => $this->t('Depth'), 'help' => $this->t('Display the depth of the comment if it is threaded.'),