‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 add (string $identifier, string|object $classNameOrObject)
 
BackendLayoutCollection[] getBackendLayoutCollections (DataProviderContext $dataProviderContext)
 
 getBackendLayout (string $combinedIdentifier, int $pageId)
 

Protected Member Functions

 createBackendLayoutCollection (string $identifier)
 

Protected Attributes

array $dataProviders = []
 
array $results = []
 

Detailed Description

Collection of backend layout data providers.

Definition at line 26 of file DataProviderCollection.php.

Member Function Documentation

◆ add()

TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::add ( string  $identifier,
string|object  $classNameOrObject 
)

Adds a data provider to this collection.

Definition at line 37 of file DataProviderCollection.php.

References TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$identifier.

◆ createBackendLayoutCollection()

TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::createBackendLayoutCollection ( string  $identifier)
protected

◆ getBackendLayout()

TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::getBackendLayout ( string  $combinedIdentifier,
int  $pageId 
)

Gets a backend layout by a combined identifier, which is e.g. "myextension_regular" and "myextension" is the identifier of the accordant data provider and "regular" the identifier of the accordant backend layout.

Definition at line 90 of file DataProviderCollection.php.

◆ getBackendLayoutCollections()

BackendLayoutCollection [] TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::getBackendLayoutCollections ( DataProviderContext  $dataProviderContext)

Gets all backend layout collections and thus, all backend layouts. Each data provider returns its own backend layout collection.

Returns
BackendLayoutCollection[]

Definition at line 71 of file DataProviderCollection.php.

References TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$identifier, and TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection\createBackendLayoutCollection().

Member Data Documentation

◆ $dataProviders

array TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::$dataProviders = []
protected

Definition at line 31 of file DataProviderCollection.php.

◆ $results

array TYPO3\CMS\Backend\View\BackendLayout\DataProviderCollection::$results = []
protected

Definition at line 32 of file DataProviderCollection.php.