MetaTagManagerRegistry implements SingletonInterface
Holds all available meta tag managers
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $registry : array<string|int, mixed>
Methods
- getAllManagers() : array<string|int, MetaTagManagerInterface>
- Get an array of all registered MetaTagManagers
- getManagerForProperty() : MetaTagManagerInterface
- Get the MetaTagManager for a specific property
- getState() : array<string|int, mixed>
- registerManager() : void
- Add a MetaTagManager to the registry
- removeAllManagers() : void
- Remove all registered MetaTagManagers
- updateState() : void
Properties
$registry
protected
array<string|int, mixed>
$registry
= ['generic' => ['module' => \TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::class]]
Methods
getAllManagers()
Get an array of all registered MetaTagManagers
public
getAllManagers() : array<string|int, MetaTagManagerInterface>
Return values
array<string|int, MetaTagManagerInterface>getManagerForProperty()
Get the MetaTagManager for a specific property
public
getManagerForProperty(string $property) : MetaTagManagerInterface
Parameters
- $property : string
Return values
MetaTagManagerInterfacegetState()
public
getState() : array<string|int, mixed>
Return values
array<string|int, mixed>registerManager()
Add a MetaTagManager to the registry
public
registerManager(string $name, string $className[, array<string|int, mixed> $before = ['generic'] ][, array<string|int, mixed> $after = [] ]) : void
Parameters
- $name : string
- $className : string
- $before : array<string|int, mixed> = ['generic']
- $after : array<string|int, mixed> = []
removeAllManagers()
Remove all registered MetaTagManagers
public
removeAllManagers() : void
updateState()
public
updateState(array<string|int, mixed> $state) : void
Parameters
- $state : array<string|int, mixed>