protected function FileLinkReplace::renderLink in File Replace (D8) 8
Prepares the link to view a entity.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
string Returns a string for the link text.
Overrides EntityLink::renderLink
File
- src/
Plugin/ views/ field/ FileLinkReplace.php, line 27
Class
- FileLinkReplace
- Field handler to present a link to replace a file.
Namespace
Drupal\file_replace\Plugin\views\fieldCode
protected function renderLink(ResultRow $row) {
$this->options['alter']['query'] = $this
->getDestinationArray();
return parent::renderLink($row);
}