GlobalMetadataBag
extends MetadataBag
in package
Holds the metadata tags for a page or the site model.
Table of Contents
Properties
- $generics : array<string|int, string>
- $links : array<string, MetadataElementContract>
- $metadata : array<string, MetadataElementContract>
- $properties : array<string, MetadataElementContract>
Methods
- add() : static
- get() : array<string|int, mixed>
- make() : static
- render() : string
- toHtml() : string
- addGenericElement() : void
- filterDuplicateMetadata() : void
- getPrefixedArray() : array<string, MetadataElementContract>
Properties
$generics
protected
array<string|int, string>
$generics
= []
$links
protected
array<string, MetadataElementContract>
$links
= []
$metadata
protected
array<string, MetadataElementContract>
$metadata
= []
$properties
protected
array<string, MetadataElementContract>
$properties
= []
Methods
add()
public
add(MetadataElementContract|string $element) : static
Parameters
- $element : MetadataElementContract|string
Return values
staticget()
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed>make()
public
static make() : static
Return values
staticrender()
public
render() : string
Return values
stringtoHtml()
public
toHtml() : string
Return values
stringaddGenericElement()
protected
addGenericElement(string $element) : void
Parameters
- $element : string
filterDuplicateMetadata()
protected
static filterDuplicateMetadata(GlobalMetadataBag $global, HydePage $page) : void
Parameters
- $global : GlobalMetadataBag
- $page : HydePage
getPrefixedArray()
protected
getPrefixedArray(string $type) : array<string, MetadataElementContract>
Parameters
- $type : string