protected function PhotosImageSetCover::renderLink in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Plugin/views/field/PhotosImageSetCover.php \Drupal\photos\Plugin\views\field\PhotosImageSetCover::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
- src/
Plugin/ views/ field/ PhotosImageSetCover.php, line 22
Class
- PhotosImageSetCover
- Field handler to present a link to set image as album cover.
Namespace
Drupal\photos\Plugin\views\fieldCode
protected function renderLink(ResultRow $row) {
if ($this->options['output_url_as_text']) {
return $this
->getUrlInfo($row)
->toString();
}
$this->options['alter']['query'] = $this
->getDestinationArray();
return parent::renderLink($row);
}