diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php index f4472c5..a9e27bc 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php @@ -10,7 +10,7 @@ use Drupal\Component\Annotation\PluginID; /** - * Field handler to present a link to delete a node. + * Field handler to present a link to delete a comment. * * @ingroup views_field_handlers * diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php index 9c97f9c..c19eab2 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php @@ -10,7 +10,7 @@ use Drupal\Component\Annotation\PluginID; /** - * Field handler to present a link node edit. + * Field handler to present a link to edit a comment. * * @ingroup views_field_handlers * @@ -40,7 +40,7 @@ public function buildOptionsForm(&$form, &$form_state) { function render_link($data, $values) { parent::render_link($data, $values); // ensure user has access to edit this comment. - $comment = $this->get_entity($values); + $comment = $this->getValue($values); if (!$comment->access('update')) { return; } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php index 2568934..da0e8ff 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php @@ -25,7 +25,7 @@ public function access() { function render_link($data, $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('reply'); - $comment = $this->get_entity($values); + $comment = $this->getEntity($values); $this->options['alter']['make_link'] = TRUE; $this->options['alter']['path'] = "comment/reply/{$comment->entity_type->value}/{$comment->entity_id->value}/{$comment->field_name->value}/{$comment->id()}";