‪TYPO3CMS  10.4
TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler:
TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler TYPO3\CMS\Recordlist\LinkHandler\AbstractLinkHandler TYPO3\CMS\Recordlist\LinkHandler\LinkHandlerInterface TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface

Public Member Functions

string[] getBodyTagAttributes ()
 

Protected Member Functions

FileInterface[] Folder[] getFolderContent (Folder $folder, $extensionList)
 
array renderItem (ResourceInterface $fileOrFolderObject)
 

Protected Attributes

string $mode = 'folder'
 
string $expectedClass = Folder::class
 

Detailed Description

Link handler for folder links

This class is a specific LinkHandler implementation and is not part of the TYPO3's Core API.

Definition at line 30 of file FolderLinkHandler.php.

Member Function Documentation

◆ getBodyTagAttributes()

string [] TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler::getBodyTagAttributes ( )
Returns
‪string[] Array of body-tag attributes

Reimplemented from TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler.

Definition at line 53 of file FolderLinkHandler.php.

References TYPO3\CMS\Core\LinkHandling\LinkService\TYPE_FOLDER.

◆ getFolderContent()

FileInterface [] Folder [] TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler::getFolderContent ( Folder  $folder,
  $extensionList 
)
protected
Parameters
Folder$folder
string$extensionList
Returns
‪FileInterface[]|Folder[]

Reimplemented from TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler.

Definition at line 45 of file FolderLinkHandler.php.

References TYPO3\CMS\Core\Resource\Folder\getSubfolders().

◆ renderItem()

array TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler::renderItem ( ResourceInterface  $fileOrFolderObject)
protected

Renders a single item displayed in the current folder

Parameters
ResourceInterface$fileOrFolderObject
Returns
‪array
Exceptions

Reimplemented from TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler.

Definition at line 71 of file FolderLinkHandler.php.

References TYPO3\CMS\Core\Resource\ResourceInterface\getName(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Core\LinkHandling\LinkService\TYPE_FOLDER.

Member Data Documentation

◆ $expectedClass

string TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler::$expectedClass = Folder::class
protected

Definition at line 38 of file FolderLinkHandler.php.

◆ $mode

string TYPO3\CMS\Recordlist\LinkHandler\FolderLinkHandler::$mode = 'folder'
protected

Definition at line 34 of file FolderLinkHandler.php.