protected function EntityLink::renderLink in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::renderLink()
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 LinkBase::renderLink
2 calls to EntityLink::renderLink()
- EntityLinkDelete::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkDelete.php - Prepares the link to view a entity.
- EntityLinkEdit::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkEdit.php - Prepares the link to view a entity.
2 methods override EntityLink::renderLink()
- EntityLinkDelete::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkDelete.php - Prepares the link to view a entity.
- EntityLinkEdit::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkEdit.php - Prepares the link to view a entity.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ EntityLink.php, line 27
Class
- EntityLink
- Field handler to present a link to an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function renderLink(ResultRow $row) {
if ($this->options['output_url_as_text']) {
return $this
->getUrlInfo($row)
->toString();
}
return parent::renderLink($row);
}