TreeController

readonly class \TYPO3\CMS\Backend\Controller\FileStorage\TreeController

Controller providing data to the file storage tree.

Attributes

#[AsController]

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$iconFactory  : IconFactory
$resourceFactory  : ResourceFactory
$treeProvider  : FileStorageTreeProvider

Methods

__construct()  : mixed
fetchDataAction()  : ResponseInterface
Loads data for the first time, or when expanding a folder.
fetchRootlineAction()  : ResponseInterface
Returns JSON representing page rootline
filterDataAction()  : ResponseInterface
Used when the search / filter is used.
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getPreparedItemsForOutput()  : array
Adds information for the JSON result to be rendered. Additionally, dispatches event for modification.

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

fetchDataAction()

Loads data for the first time, or when expanding a folder.

public fetchDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

fetchRootlineAction()

Returns JSON representing page rootline

public fetchRootlineAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

filterDataAction()

Used when the search / filter is used.

public filterDataAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Tags

throws
Exception

Return values

ResponseInterface

getPreparedItemsForOutput()

Adds information for the JSON result to be rendered. Additionally, dispatches event for modification.

protected getPreparedItemsForOutput(ServerRequestInterface $request, array $items) : array

Parameters

$request : ServerRequestInterface
$items : array

Return values

array
On this page