protected function LinkBase::checkUrlAccess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 - Renders the field.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php, line 145 - Contains \Drupal\views\Plugin\views\field\LinkBase.
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);
}