function LinkApprove::getUrlInfo

Same name and namespace in other branches
  1. 11.x core/modules/comment/src/Plugin/views/field/LinkApprove.php \Drupal\comment\Plugin\views\field\LinkApprove::getUrlInfo()

File

core/modules/comment/src/Plugin/views/field/LinkApprove.php, line 21

Class

LinkApprove
Provides a comment approve link.

Namespace

Drupal\comment\Plugin\views\field

Code

protected function getUrlInfo(ResultRow $row) {
  return Url::fromRoute('comment.approve', [
    'comment' => $this->getEntity($row)
      ->id(),
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.