‪TYPO3CMS  ‪main
TYPO3\CMS\Reports\Report\WarningsForAboutModule Class Reference

Public Member Functions

 __construct (private readonly Registry $registry, private readonly Context $context)
 
 __invoke (ModifyGenericBackendMessagesEvent $event)
 

Private Member Functions

 getLanguageService ()
 

Private Attributes

string $reportsModuleName = 'system_reports'
 

Detailed Description

Adds a warning message about problems in the current installation to the About module

This is a concrete Event Listener implementation and not part of the TYPO3 Core API.

Definition at line 33 of file WarningsForAboutModule.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reports\Report\WarningsForAboutModule::__construct ( private readonly Registry  $registry,
private readonly Context  $context 
)

Definition at line 37 of file WarningsForAboutModule.php.

Member Function Documentation

◆ __invoke()

TYPO3\CMS\Reports\Report\WarningsForAboutModule::__invoke ( ModifyGenericBackendMessagesEvent  $event)

Tries to get the highest severity of the system's status first, if something is found it is assumed that the status update task is set up properly or the status report has been checked manually. We then add a system warning message.

Definition at line 49 of file WarningsForAboutModule.php.

References TYPO3\CMS\Backend\Controller\Event\ModifyGenericBackendMessagesEvent\addMessage(), and TYPO3\CMS\Reports\Report\WarningsForAboutModule\getLanguageService().

◆ getLanguageService()

TYPO3\CMS\Reports\Report\WarningsForAboutModule::getLanguageService ( )
private

Member Data Documentation

◆ $reportsModuleName

string TYPO3\CMS\Reports\Report\WarningsForAboutModule::$reportsModuleName = 'system_reports'
private

Definition at line 35 of file WarningsForAboutModule.php.