FrontendConfigurationManager

Read onlyYes
FinalYes

A general purpose configuration manager used in frontend mode.

Should NOT be singleton, as a new configuration manager is needed per plugin.

Internal

only to be used within Extbase, not part of TYPO3 Core API.

Table of Contents

Methods

__construct()  : mixed
getConfiguration()  : array<string|int, mixed>
Loads the Extbase Framework configuration.
getTypoScriptSetup()  : array<string|int, mixed>
Returns full Frontend TypoScript setup array calculated by FE middlewares.

Methods

getConfiguration()

Loads the Extbase Framework configuration.

public getConfiguration(ServerRequestInterface $request, array<string|int, mixed> $configuration[, string|null $extensionName = null ][, string|null $pluginName = null ]) : array<string|int, mixed>

The Extbase framework configuration HAS TO be retrieved using this method, as they are come from different places than the normal settings. Framework configuration is, in contrast to normal settings, needed for the Extbase framework to operate correctly.

Parameters
$request : ServerRequestInterface
$configuration : array<string|int, mixed>

low level configuration from outside, typically ContentObjectRenderer TypoScript element config

$extensionName : string|null = null

if specified, the configuration for the given extension will be returned (plugin.tx_extensionname)

$pluginName : string|null = null

if specified, the configuration for the given plugin will be returned (plugin.tx_extensionname_pluginname)

Return values
array<string|int, mixed>

the Extbase framework configuration

getTypoScriptSetup()

Returns full Frontend TypoScript setup array calculated by FE middlewares.

public getTypoScriptSetup(ServerRequestInterface $request) : array<string|int, mixed>
Parameters
$request : ServerRequestInterface
Return values
array<string|int, mixed>

        
On this page

Search results