FileStorageTreeProvider

readonly class \TYPO3\CMS\Backend\Tree\FileStorageTreeProvider

Responsible for fetching a tree-structure of folders.

Table of Contents

Methods

getFilteredTree()  : FolderInterface[]
Filter a tree by a search word
getRootNodes()  : array
Fetch all file storages / file mounts visible for a user.
getSubfolders()  : array
prepareFolderInformation()  : array
getFoldersInStorage()  : array
Fetch all folders recursively in a single store.
getMountsInStorage()  : array|array[]
Fetches all "root level folders" of a storage. If a user has file mounts in this storage, they are properly resolved.

Methods

getSubfolders()

public getSubfolders(Folder $folderObject, int $currentDepth) : array

Parameters

$folderObject : Folder
$currentDepth : int

Return values

array

prepareFolderInformation()

public prepareFolderInformation(Folder $folder[, string|null $alternativeName = null ][, Folder|null $parentFolder = null ][, array|null $children = null ]) : array

Parameters

$folder : Folder
$alternativeName : string|null = null
$parentFolder : Folder|null = null
$children : array|null = null

Return values

array
On this page