abstract class AbstractMetaEntity implements MetaEntityInterface (View source)

Shares immutable page metadata and tag-list rendering among metadata sections.

Custom subclasses must remain readonly to preserve their fixed page metadata.

Methods

Initializes a section with the metadata it will render.

string
renderTags(array $tags)

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

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