final class Meta extends AbstractMetaEntity (View source)

Renders standard document, SEO, canonical and alternate-language metadata.

Constants

private GENERATOR

Methods

Initializes a section with the metadata it will render.

renderTags(array $tags)

Renders only non-empty tags, separating each rendered tag by a newline.

string
string
render()

Renders standard tags while omitting custom values owned by social sections.

string

Details

__construct

__construct(MetaData $data)

Initializes a section with the metadata it will render.

Parameters

MetaData $data

renderTags

protected string renderTags(array $tags)

Renders only non-empty tags, separating each rendered tag by a newline.

Parameters

array $tags

Return Value

string

render

string render()

Renders standard tags while omitting custom values owned by social sections.

Return Value

string