PageTsBackendLayoutDataProvider implements DataProviderInterface
This Provider adds Backend Layouts based on page TSconfig
= Example = mod { web_layout { BackendLayouts { example { title = Example config { backend_layout { colCount = 1 rowCount = 2 rows { 1 { columns { 1 { name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.3 colPos = 3 colspan = 1 } } } 2 { columns { 1 { name = Main colPos = 0 colspan = 1 } } } } } } icon = content-container-columns-2 } } } }
Specific DataProviderInterface implementation, not considered public API.
Table of Contents
Interfaces
- DataProviderInterface
- Interface for classes which hook into BackendLayoutDataProvider to provide additional backend layouts from various sources.
Methods
- addBackendLayouts() : void
- Adds backend layouts to the given backend layout collection.
- getBackendLayout() : BackendLayout|null
- Gets a backend layout by (regular) identifier.
- getIdentifier() : non-empty-string
- Returns the unique identifier for this backend layout data provider.
Methods
addBackendLayouts()
Adds backend layouts to the given backend layout collection.
public
addBackendLayouts(DataProviderContext $dataProviderContext, BackendLayoutCollection $backendLayoutCollection) : void
Parameters
- $dataProviderContext : DataProviderContext
- $backendLayoutCollection : BackendLayoutCollection
getBackendLayout()
Gets a backend layout by (regular) identifier.
public
getBackendLayout(string $identifier, int $pageId) : BackendLayout|null
Parameters
- $identifier : string
- $pageId : int
Return values
BackendLayout|nullgetIdentifier()
Returns the unique identifier for this backend layout data provider.
public
getIdentifier() : non-empty-string
This identifier is used to build combined identifiers in the format "providerIdentifier__layoutIdentifier" (e.g., "my_provider__my_layout").
Requirements:
- Must be a non-empty string
- Must not contain double underscores "__" (reserved as separator)
- Must be unique across all registered backend layout data providers
Return values
non-empty-string —The unique identifier for this data provider