GenericMetaTagManager
final class \
- Implements
- MetaTagManagerInterface
Handles typical meta tags (non-grouped). Use AbstractMetaTagManager to create your own MetaTags, this class is final by design
Attributes
- #[AsMetaTagManager]
- $identifier: 'generic'
Table of Contents
Interfaces
Methods
- addProperty() : void
- Add a property (including subProperties)
- canHandleProperty() : bool
- Check if this manager can handle the given property
- getAllHandledProperties() : array
- Returns an array with all properties that can be handled by this manager
- getProperty() : array
- Get the data of a specific property
- getState() : array
- removeAllProperties() : void
- Unset all properties
- removeProperty() : void
- 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 specific property including subproperties of that property
- updateState() : void
Methods
addProperty()
Add a property (including subProperties)
public
addProperty(string $property, string $content[, array $subProperties = [] ][, bool $replace = false ][, string $type = 'name' ]) : void
Parameters
- $property : string
- $content : string
- $subProperties : array = []
- $replace : bool = false
- $type : string = 'name'
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 this manager
public
getAllHandledProperties() : array
Return values
arraygetProperty()
Get the data of a specific property
public
getProperty(string $property[, string $type = 'name' ]) : array
Parameters
- $property : string
- $type : string = 'name'
Return values
arraygetState()
public
getState() : array
Return values
arrayremoveAllProperties()
Unset all properties
public
removeAllProperties() : void
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 = '' ]) : void
Parameters
- $property : string
- $type : string = ''
renderAllProperties()
Render all registered properties of this manager
public
renderAllProperties([DocType|null $docType = null ]) : string
Parameters
- $docType : DocType|null = null
Return values
stringrenderProperty()
Render a specific property including subproperties of that property
public
renderProperty(string $property[, DocType|null $docType = null ]) : string
Parameters
- $property : string
- $docType : DocType|null = null
Return values
stringupdateState()
public
updateState(array $state) : void
Parameters
- $state : array