‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry Class Reference

Public Member Functions

 __construct (iterable $elementBrowsers)
 
 hasElementBrowser (string $identifier)
 
 getElementBrowser (string $identifier)
 
ElementBrowserInterface[] getElementBrowsers ()
 

Private Attributes

array $elementBrowsers = []
 

Detailed Description

Registry for element browsers. The registry receives all services, tagged with "recordlist.elementbrowser". The tagging of element browsers is automatically done based on the implemented ElementBrowserInterface.

Definition at line 26 of file ElementBrowserRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry::__construct ( iterable  $elementBrowsers)

Member Function Documentation

◆ getElementBrowser()

TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry::getElementBrowser ( string  $identifier)

Get registered element browser by identifier

Definition at line 62 of file ElementBrowserRegistry.php.

References TYPO3\CMS\Webhooks\Message\$identifier, and TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry\hasElementBrowser().

◆ getElementBrowsers()

ElementBrowserInterface [] TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry::getElementBrowsers ( )

Get all registered element browsers

Returns
ElementBrowserInterface[]

Definition at line 76 of file ElementBrowserRegistry.php.

References TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry\$elementBrowsers.

◆ hasElementBrowser()

TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry::hasElementBrowser ( string  $identifier)

Whether a registered element browser exists for the identifier

Definition at line 54 of file ElementBrowserRegistry.php.

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

Referenced by TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry\getElementBrowser().

Member Data Documentation

◆ $elementBrowsers

array TYPO3\CMS\Backend\ElementBrowser\ElementBrowserRegistry::$elementBrowsers = []
private