function 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.