class HeadLink extends Element (View source)

Properties

protected string $element

Default element.

protected bool $isSelfClosing

Whether the element is self closing.

Methods

__construct(string $href = '#', string $rel = null, string $type = null, string $media = null)

Create a new Link.

static HeadLink
create(string $href = '#', string $rel = null, string $type = null, string $media = null)

Static alias for constructor.

Details

HeadLink __construct(string $href = '#', string $rel = null, string $type = null, string $media = null)

Create a new Link.

Parameters

string $href

Link url

string $rel

Link relation (stylesheet)

string $type

Link type (text/css)

string $media

Link media (screen, print, etc)

Return Value

HeadLink

static HeadLink create(string $href = '#', string $rel = null, string $type = null, string $media = null)

Static alias for constructor.

Parameters

string $href

Link url

string $rel

Link relation (stylesheet)

string $type

Link type (text/css)

string $media

Link media (screen, print, etc)

Return Value

HeadLink