‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent Class Reference

Public Member Functions

 __construct (private readonly FileInterface $file,)
 
 getFile ()
 
 isFileSelectable ()
 
 allowFileSelection ()
 
 denyFileSelection ()
 

Private Attributes

bool $isFileSelectable = true
 

Detailed Description

Listeners to this event are able to define whether a file can be selected in the file browser

Definition at line 25 of file IsFileSelectableEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent::__construct ( private readonly FileInterface  $file)

Definition at line 29 of file IsFileSelectableEvent.php.

Member Function Documentation

◆ allowFileSelection()

TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent::allowFileSelection ( )

◆ denyFileSelection()

TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent::denyFileSelection ( )

◆ getFile()

TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent::getFile ( )

Definition at line 33 of file IsFileSelectableEvent.php.

◆ isFileSelectable()

Member Data Documentation

◆ $isFileSelectable

bool TYPO3\CMS\Backend\ElementBrowser\Event\IsFileSelectableEvent::$isFileSelectable = true
private