‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Cache\Event\CacheFlushEvent Class Reference

Public Member Functions

 __construct (private readonly array $groups)
 
 getGroups ()
 
 hasGroup (string $group)
 
 getErrors ()
 
 addError (string $error)
 

Private Attributes

array $errors = []
 

Detailed Description

Event fired when caches are to be cleared

Definition at line 23 of file CacheFlushEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::__construct ( private readonly array  $groups)

Definition at line 27 of file CacheFlushEvent.php.

Member Function Documentation

◆ addError()

TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::addError ( string  $error)

Definition at line 44 of file CacheFlushEvent.php.

◆ getErrors()

TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::getErrors ( )

◆ getGroups()

TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::getGroups ( )

◆ hasGroup()

TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::hasGroup ( string  $group)

Definition at line 34 of file CacheFlushEvent.php.

Member Data Documentation

◆ $errors

array TYPO3\CMS\Core\Cache\Event\CacheFlushEvent::$errors = []
private