If $url starts with "http://" this is treated as an external link. Else,
it is treated as a path to controller/action and parsed with the
UrlHelper::build() method.
If the $url is empty, $title is used instead.
### Options
- escape Set to false to disable escaping of title and attributes.
- escapeTitle Set to false to disable escaping of title. Takes precedence
over value of escape)
- confirm JavaScript confirmation message.
public link ( string $title, string | array | null $url = null, array $options = [] ) : string | ||
$title | string | The content to be wrapped by `` tags. |
$url | string | array | null | Cake-relative URL or array of URL parameters, or external URL (starts with http://) |
$options | array | Array of options and HTML attributes. |
return | string | An `` element. |