final class TitleTag implements TagInterface (View source)

Renders an escaped document title when a title is available.

Traits

Methods

__construct(string|null $title)

Initializes the optional title content.

string
render()

Renders the title element or suppresses it for empty content.

string

Details

__construct

__construct(string|null $title)

Initializes the optional title content.

Parameters

string|null $title

render

string render()

Renders the title element or suppresses it for empty content.

Return Value

string