function EntityLink::renderLink
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::renderLink()
- 10 core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::renderLink()
- 11.x core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::renderLink()
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.