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
- __construct() : mixed
- 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() : mixed
- Add a MetaTagManager to the registry
- removeAllManagers() : mixed
- Remove all registered MetaTagManagers
- updateState() : void
Properties
$registry
protected
array<string|int, mixed>
$registry
= []
Methods
__construct()
public
__construct() : mixed
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 = [] ]) : mixed
Parameters
- $name : string
- $className : string
- $before : array<string|int, mixed> = ['generic']
- $after : array<string|int, mixed> = []
removeAllManagers()
Remove all registered MetaTagManagers
public
removeAllManagers() : mixed
updateState()
public
updateState(array<string|int, mixed> $newState) : void
Parameters
- $newState : array<string|int, mixed>