‪TYPO3CMS  11.5
TYPO3\CMS\Core\Resource\Utility\ListUtility Class Reference

Static Public Member Functions

static array< string|int, resolveSpecialFolderNames(array $folders) { $lang=$GLOBALS[ 'LANG'];$resolvedFolders=[];foreach( $folders as $folder) { $name=$folder-> getName ()
 

Public Attributes

 $role = $folder->getRole()
 
if($role !==FolderInterface::ROLE_DEFAULT$resolvedFolders [$name] = $folder
 
return $resolvedFolders
 

Detailed Description

Utility function for working with resource-lists

Definition at line 25 of file ListUtility.php.

Member Function Documentation

◆ getName()

static array<string|int, resolveSpecialFolderNames(array $folders) { $lang = $GLOBALS['LANG']; $resolvedFolders = []; foreach ($folders as $folder) { $name = $folder-> TYPO3\CMS\Core\Resource\Utility\ListUtility::getName ( )
static

Resolve special folders (by their role) into localised string

Parameters
Folder[]$folders
Returns
‪array<string|int, Folder> Folders using the Folder name (with or without role) as key

Member Data Documentation

◆ $resolvedFolders [1/2]

if ( $role !==FolderInterface::ROLE_DEFAULT) TYPO3\CMS\Core\Resource\Utility\ListUtility::$resolvedFolders[ $name] = $folder

Definition at line 49 of file ListUtility.php.

◆ $resolvedFolders [2/2]

return TYPO3\CMS\Core\Resource\Utility\ListUtility::$resolvedFolders

Definition at line 52 of file ListUtility.php.

◆ $role

TYPO3\CMS\Core\Resource\Utility\ListUtility::$role = $folder->getRole()

Definition at line 41 of file ListUtility.php.