MetadataBag
in package
implements
Htmlable
Holds the metadata tags for a page or the site model.
Tags
Table of Contents
Interfaces
- Htmlable
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>
- render() : string
- toHtml() : string
- addGenericElement() : 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>render()
public
render() : string
Return values
stringtoHtml()
public
toHtml() : string
Return values
stringaddGenericElement()
protected
addGenericElement(string $element) : void
Parameters
- $element : string
getPrefixedArray()
protected
getPrefixedArray(string $type) : array<string, MetadataElementContract>
Parameters
- $type : string