MetaTagManagerInterface
Table of Contents
Methods
- addProperty() : mixed
- Add a property
- canHandleProperty() : bool
- Check if this manager can handle the given property
- getAllHandledProperties() : array<string|int, mixed>
- Returns an array with all properties that can be handled by the manager
- getProperty() : array<string|int, mixed>
- Get a specific property that is set before
- removeAllProperties() : mixed
- Unset all properties of this MetaTagManager
- removeProperty() : mixed
- Remove one property from the MetaTagManager If there are multiple occurrences of a property, they all will be removed
- renderAllProperties() : string
- Render all registered properties of this manager
- renderProperty() : string
- Render a meta tag for a specific property
Methods
addProperty()
Add a property
public
addProperty(string $property, string $content[, array<string|int, mixed> $subProperties = [] ][, bool $replace = false ][, string $type = '' ]) : mixed
Parameters
- $property : string
- $content : string
- $subProperties : array<string|int, mixed> = []
- $replace : bool = false
- $type : string = ''
canHandleProperty()
Check if this manager can handle the given property
public
canHandleProperty(string $property) : bool
Parameters
- $property : string
Return values
boolgetAllHandledProperties()
Returns an array with all properties that can be handled by the manager
public
getAllHandledProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>getProperty()
Get a specific property that is set before
public
getProperty(string $property[, string $type = '' ]) : array<string|int, mixed>
Parameters
- $property : string
- $type : string = ''
Return values
array<string|int, mixed>removeAllProperties()
Unset all properties of this MetaTagManager
public
removeAllProperties() : mixed
removeProperty()
Remove one property from the MetaTagManager If there are multiple occurrences of a property, they all will be removed
public
removeProperty(string $property[, string $type = '' ]) : mixed
Parameters
- $property : string
- $type : string = ''
renderAllProperties()
Render all registered properties of this manager
public
renderAllProperties() : string
Return values
stringrenderProperty()
Render a meta tag for a specific property
public
renderProperty(string $property) : string
Parameters
- $property : string