‪TYPO3CMS  ‪main
TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry Class Reference

Public Member Functions

 __construct (iterable $linktypes)
 
 getLinktype (string $identifier)
 
LinktypeInterface[] getLinktypes ()
 
string[] getIdentifiers ()
 

Private Attributes

array $linktypes = []
 

Detailed Description

Registry for linktypes. The registry receives all services, tagged with "linkvalidator.linktype". The tagging of linktype is automatically done based on the implemented LinktypeInterface.

Definition at line 26 of file LinktypeRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry::__construct ( iterable  $linktypes)

Member Function Documentation

◆ getIdentifiers()

string [] TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry::getIdentifiers ( )

Get the identifiers of all registered linktypes

Returns
‪string[]

Definition at line 69 of file LinktypeRegistry.php.

◆ getLinktype()

TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry::getLinktype ( string  $identifier)

Definition at line 49 of file LinktypeRegistry.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ getLinktypes()

LinktypeInterface [] TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry::getLinktypes ( )

Get all registered linktypes

Returns
LinktypeInterface[]

Definition at line 59 of file LinktypeRegistry.php.

References TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry\$linktypes.

Member Data Documentation

◆ $linktypes

array TYPO3\CMS\Linkvalidator\Linktype\LinktypeRegistry::$linktypes = []
private