protected function LinkBase::checkUrlAccess in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::checkUrlAccess()
- 9 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::checkUrlAccess()
Checks access to the link route.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 call to LinkBase::checkUrlAccess()
- LinkBase::render in core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php
File
- core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php, line 181
Class
- LinkBase
- Field handler to present a link to an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function checkUrlAccess(ResultRow $row) {
$url = $this
->getUrlInfo($row);
return $this->accessManager
->checkNamedRoute($url
->getRouteName(), $url
->getRouteParameters(), $this
->currentUser(), TRUE);
}