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)
Internal

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()  : FrontendInterface

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$fetchedContentRecords

protected array<string|int, mixed> $fetchedContentRecords = []

Methods

getContentRecordsPerColumn()

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>

getResult()

protected getResult(mixed $result) : array<string|int, mixed>
Parameters
$result : mixed
Return values
array<string|int, mixed>

        
On this page

Search results