LocalizationController

Read onlyYes

LocalizationController handles the AJAX requests for the localization wizard.

Internal

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$iconFactory  : IconFactory
$localizationHandler  : LocalizationHandlerInterface
$localizationHandlerRegistry  : LocalizationHandlerRegistry
$localizationRepository  : LocalizationRepository
$schemaFactory  : TcaSchemaFactory
$translationConfigurationProvider  : TranslationConfigurationProvider

Methods

__construct()  : mixed
getContent()  : ResponseInterface
Get page layout and records for localization
getHandlers()  : ResponseInterface
Get available localization handlers
getModes()  : ResponseInterface
Get available localization modes
getRecord()  : ResponseInterface
Get record information for localization wizard
getSources()  : ResponseInterface
Get source languages that have content and can be used as translation base
getTargets()  : ResponseInterface
Get all target languages available for translation (excluding default language)
localize()  : ResponseInterface

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

__construct()

public __construct(IconFactory $iconFactory, LocalizationRepository $localizationRepository, EventDispatcherInterface $eventDispatcher, LocalizationHandlerInterface $localizationHandler, LocalizationHandlerRegistry $localizationHandlerRegistry, TcaSchemaFactory $schemaFactory, TranslationConfigurationProvider $translationConfigurationProvider) : mixed
Parameters
$iconFactory : IconFactory
$localizationRepository : LocalizationRepository
$eventDispatcher : EventDispatcherInterface
$localizationHandler : LocalizationHandlerInterface
$localizationHandlerRegistry : LocalizationHandlerRegistry
$schemaFactory : TcaSchemaFactory
$translationConfigurationProvider : TranslationConfigurationProvider

getContent()

Get page layout and records for localization

public getContent(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getHandlers()

Get available localization handlers

public getHandlers(ServerRequestInterface $request) : ResponseInterface

Returns handlers filtered by the localization context

Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getModes()

Get available localization modes

public getModes(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getRecord()

Get record information for localization wizard

public getRecord(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getSources()

Get source languages that have content and can be used as translation base

public getSources(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getTargets()

Get all target languages available for translation (excluding default language)

public getTargets(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

localize()

public localize(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

        
On this page

Search results