FileStorageTreeProvider

Read onlyYes

Responsible for fetching a tree-structure of folders.

Internal

not part of TYPO3 Core API due to the specific use case for the FileStorageTree component.

Table of Contents

Methods

getFilteredTree()  : array<string|int, FolderInterface>
Filter a tree by a search word
getRootNodes()  : array<string|int, mixed>
Fetch all file storages / file mounts visible for a user.
getSubfolders()  : array<string|int, mixed>
prepareFolderInformation()  : array<string|int, mixed>
getFoldersInStorage()  : array<string|int, mixed>
Fetch all folders recursively in a single store.
getMountsInStorage()  : array<string|int, mixed>|array<string|int, array<string|int, mixed>>
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<string|int, mixed>
Parameters
$folderObject : Folder
$currentDepth : int
Return values
array<string|int, mixed>

prepareFolderInformation()

public prepareFolderInformation(Folder $folder[, string|null $alternativeName = null ][, Folder|null $parentFolder = null ][, array<string|int, mixed>|null $children = null ]) : array<string|int, mixed>
Parameters
$folder : Folder
$alternativeName : string|null = null
$parentFolder : Folder|null = null
$children : array<string|int, mixed>|null = null
Return values
array<string|int, mixed>

getMountsInStorage()

Fetches all "root level folders" of a storage. If a user has file mounts in this storage, they are properly resolved.

protected getMountsInStorage(ResourceStorage $resourceStorage, BackendUserAuthentication $user) : array<string|int, mixed>|array<string|int, array<string|int, mixed>>
Parameters
$resourceStorage : ResourceStorage
$user : BackendUserAuthentication
Return values
array<string|int, mixed>|array<string|int, array<string|int, mixed>>

        
On this page

Search results