public static function Url::renderAccess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::renderAccess()
Checks a Url render element against applicable access check services.
Parameters
array $element: A render element as returned from \Drupal\Core\Url::toRenderArray().
Return value
bool Returns TRUE if the current user has access to the url, otherwise FALSE.
File
- core/
lib/ Drupal/ Core/ Url.php, line 819 - Contains \Drupal\Core\Url.
Class
- Url
- Defines an object that holds information about a URL.
Namespace
Drupal\CoreCode
public static function renderAccess(array $element) {
return $element['#url']
->access();
}