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