function 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 32
Class
- LinkApprove
- Provides a comment approve link.
Namespace
Drupal\comment\Plugin\views\fieldCode
protected function renderLink(ResultRow $row) {
$this->options['alter']['query'] = $this->getDestinationArray();
return parent::renderLink($row);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.