LocalizationFactory implements SingletonInterface

Provides a language parser factory.

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$store  : LanguageStore
$cacheInstance  : FrontendInterface

Methods

__construct()  : mixed
getParsedData()  : array<string, array<string, array<int, array<string, string>>>>
Returns parsed data from a given file and language key.
localizationOverride()  : mixed
Override localization file

Properties

Methods

getParsedData()

Returns parsed data from a given file and language key.

public getParsedData(string $fileReference, string $languageKey[, null $_ = null ][, null $__ = null ][, bool $isLocalizationOverride = false ]) : array<string, array<string, array<int, array<string, string>>>>
Parameters
$fileReference : string

Input is a file-reference (see \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName). That file is expected to be a supported locallang file format

$languageKey : string

Language key

$_ : null = null

unused

$__ : null = null

unused

$isLocalizationOverride : bool = false

TRUE if $fileReference is a localization override

Return values
array<string, array<string, array<int, array<string, string>>>>

localizationOverride()

Override localization file

protected localizationOverride(string $fileReference, string $languageKey, array<string|int, mixed> &$LOCAL_LANG) : mixed

This method merges the content of the override file with the default file

Parameters
$fileReference : string
$languageKey : string
$LOCAL_LANG : array<string|int, mixed>

        
On this page

Search results