‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Event\AfterFileDeletedEvent Class Reference

Public Member Functions

 __construct (private FileInterface $file)
 
 getFile ()
 

Detailed Description

This event is fired after a file was deleted.

Example: If an extension provides additional functionality (e.g. variants), this event allows listener to also clean up their custom handling. This can also be used for versioning of files.

Definition at line 28 of file AfterFileDeletedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\AfterFileDeletedEvent::__construct ( private FileInterface  $file)

Definition at line 30 of file AfterFileDeletedEvent.php.

Member Function Documentation

◆ getFile()

TYPO3\CMS\Core\Resource\Event\AfterFileDeletedEvent::getFile ( )