You are here

protected function LinkApprove::getUrlInfo in Zircon Profile 8.0

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

Returns the URI elements of the link.

Parameters

\Drupal\views\ResultRow $row: A view result row.

Return value

\Drupal\Core\Url The URI elements of the link.

Overrides LinkBase::getUrlInfo

File

core/modules/comment/src/Plugin/views/field/LinkApprove.php, line 26
Contains \Drupal\comment\Plugin\views\field\LinkApprove.

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(),
  ]);
}