ContentFetcher
Class responsible for fetching the content data related to a BackendLayout
- Reads content records
- Performs workspace overlay on records
- Capable of returning all records in active language as flat array
- Capable of returning records for a given column in a given (optional) language
- Capable of returning translation data (brief info about translation consistency)
this is experimental and subject to change in TYPO3 v10 / v11
Table of Contents
Properties
- $context : PageLayoutContext
- $eventDispatcher : EventDispatcherInterface
- $fetchedContentRecords : array<string|int, mixed>
Methods
- __construct() : mixed
- getBackendUser() : BackendUserAuthentication
- getContentRecordsPerColumn() : array<string|int, mixed>
- Gets content records per column.
- getFlatContentRecords() : iterable<string|int, mixed>
- getTranslationData() : array<string|int, mixed>
- getUnusedRecords() : iterable<string|int, mixed>
- Allows to decide via an Event whether a custom type has children which were rendered or should not be rendered.
- getLanguageService() : LanguageService
- getQueryBuilder() : QueryBuilder
- getResult() : array<string|int, mixed>
- getRuntimeCache() : VariableFrontend
Properties
$context
protected
PageLayoutContext
$context
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$fetchedContentRecords
protected
array<string|int, mixed>
$fetchedContentRecords
= []
Methods
__construct()
public
__construct(PageLayoutContext $pageLayoutContext) : mixed
Parameters
- $pageLayoutContext : PageLayoutContext
getBackendUser()
public
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetContentRecordsPerColumn()
Gets content records per column.
public
getContentRecordsPerColumn([int|null $columnNumber = null ][, int|null $languageId = null ]) : array<string|int, mixed>
This is required for correct workspace overlays.
Parameters
- $columnNumber : int|null = null
- $languageId : int|null = null
Return values
array<string|int, mixed> —Associative array for each column (colPos) or for all columns if $columnNumber is null
getFlatContentRecords()
public
getFlatContentRecords(int $languageId) : iterable<string|int, mixed>
Parameters
- $languageId : int
Return values
iterable<string|int, mixed>getTranslationData()
public
getTranslationData(iterable<string|int, mixed> $contentElements, int $language) : array<string|int, mixed>
Parameters
- $contentElements : iterable<string|int, mixed>
- $language : int
Return values
array<string|int, mixed>getUnusedRecords()
Allows to decide via an Event whether a custom type has children which were rendered or should not be rendered.
public
getUnusedRecords() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetQueryBuilder()
protected
getQueryBuilder() : QueryBuilder
Return values
QueryBuildergetResult()
protected
getResult(mixed $result) : array<string|int, mixed>
Parameters
- $result : mixed
Return values
array<string|int, mixed>getRuntimeCache()
protected
getRuntimeCache() : VariableFrontend