CodeCompletionController

readonly class \TYPO3\CMS\Backend\Controller\CodeEditor\CodeCompletionController

Code completion for code editor

Attributes

#[AsController]

Table of Contents

Methods

__construct()  : mixed
loadCompletions()  : ResponseInterface
Loads all templates up to a given page id (walking the rootline) and cleans parts that are not required for the code editor code-completion.
getLanguageService()  : LanguageService
getMergedTemplates()  : array
Gets merged templates by walking the rootline to a given page id.

Methods

loadCompletions()

Loads all templates up to a given page id (walking the rootline) and cleans parts that are not required for the code editor code-completion.

public loadCompletions(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

getMergedTemplates()

Gets merged templates by walking the rootline to a given page id.

protected getMergedTemplates(int $pageId, ServerRequestInterface $request) : array

This is loaded once via ajax when a code editor in typoscript mode is fired. JS then knows the object types and can auto-complete on CTRL+space.

Parameters

$pageId : int
$request : ServerRequestInterface

Return values

array —

Setup part of merged template records

On this page