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()
- 8.9.x 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()
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 an entity.
- EntityLinkEdit::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkEdit.php - Prepares the link to view an entity.
2 methods override EntityLink::renderLink()
- EntityLinkDelete::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkDelete.php - Prepares the link to view an entity.
- EntityLinkEdit::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkEdit.php - Prepares the link to view an 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']) {
$url_info = $this->getUrlInfo($row);
return $url_info ? $url_info->toString() : '';
}
return parent::renderLink($row);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.