ElementBrowserRegistry
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.
Table of Contents
Methods
- __construct() : mixed
- getElementBrowser() : ElementBrowserInterface
- Get registered element browser by identifier
- getElementBrowsers() : array<string|int, ElementBrowserInterface>
- Get all registered element browsers
- hasElementBrowser() : bool
- Whether a registered element browser exists for the identifier
Methods
__construct()
public
__construct(iterable<string|int, mixed> $elementBrowsers) : mixed
Parameters
- $elementBrowsers : iterable<string|int, mixed>
getElementBrowser()
Get registered element browser by identifier
public
getElementBrowser(string $identifier) : ElementBrowserInterface
Parameters
- $identifier : string
Return values
ElementBrowserInterfacegetElementBrowsers()
Get all registered element browsers
public
getElementBrowsers() : array<string|int, ElementBrowserInterface>
Return values
array<string|int, ElementBrowserInterface>hasElementBrowser()
Whether a registered element browser exists for the identifier
public
hasElementBrowser(string $identifier) : bool
Parameters
- $identifier : string