LinktypeRegistry
Registry for linktypes. The registry receives all services, tagged with "linkvalidator.linktype".
The tagging of linktype is automatically done based on the implemented LinktypeInterface.
Table of Contents
Methods
- __construct() : mixed
- getIdentifiers() : array<string|int, string>
- Get the identifiers of all registered linktypes
- getLinktype() : LinktypeInterface|null
- getLinktypes() : array<string|int, LinktypeInterface>
- Get all registered linktypes
Methods
__construct()
public
__construct(iterable<string|int, mixed> $linktypes) : mixed
Parameters
- $linktypes : iterable<string|int, mixed>
getIdentifiers()
Get the identifiers of all registered linktypes
public
getIdentifiers() : array<string|int, string>
Return values
array<string|int, string>getLinktype()
public
getLinktype(string $identifier) : LinktypeInterface|null
Parameters
- $identifier : string
Return values
LinktypeInterface|nullgetLinktypes()
Get all registered linktypes
public
getLinktypes() : array<string|int, LinktypeInterface>