You are here

protected function LinkApprove::renderLink in Drupal 10

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

Prepares the link to view an entity.

Parameters

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

Return value

string Returns a string for the link text.

Overrides LinkBase::renderLink

File

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

Class

LinkApprove
Provides a comment approve link.

Namespace

Drupal\comment\Plugin\views\field

Code

protected function renderLink(ResultRow $row) {
  $this->options['alter']['query'] = $this
    ->getDestinationArray();
  return parent::renderLink($row);
}