Generate a link if the target url is authorized for the logged in user
public link ( string $title, string | array | null $url = null, array $options = [] ) : string | boolean | ||
$title | string | link's title. |
$url | string | array | null | url that the user is making request. |
$options | array | Array with option data. Extra options include 'before' and 'after' to quickly inject some html code in the link, like icons etc 'allowed' to manage if the link should be displayed, default is null to check isAuthorized |
Результат | string | boolean |