function LinkBase::getUrlInfo
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::getUrlInfo()
- 8.9.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::getUrlInfo()
- 11.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::getUrlInfo()
Returns the URI elements of the link.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
\Drupal\Core\Url|null The URI elements of the link.
2 calls to LinkBase::getUrlInfo()
- LinkBase::checkUrlAccess in core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php - Checks access to the link route.
- LinkBase::renderLink in core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php - Prepares the link to view an entity.
5 methods override LinkBase::getUrlInfo()
- ContactLink::getUrlInfo in core/
modules/ contact/ src/ Plugin/ views/ field/ ContactLink.php - Returns the URI elements of the link.
- EntityLink::getUrlInfo in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLink.php - Returns the URI elements of the link.
- LinkApprove::getUrlInfo in core/
modules/ comment/ src/ Plugin/ views/ field/ LinkApprove.php - Returns the URI elements of the link.
- LinkReply::getUrlInfo in core/
modules/ comment/ src/ Plugin/ views/ field/ LinkReply.php - Returns the URI elements of the link.
- RevisionLink::getUrlInfo in core/
modules/ node/ src/ Plugin/ views/ field/ RevisionLink.php - Returns the URI elements of the link.
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php, line 199
Class
- LinkBase
- Field handler to present a link to an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
protected abstract function getUrlInfo(ResultRow $row);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.