SystemInformationToolbarCollectorEvent
The PSR-14 event
\TYPO3\
allows to enrich the system information toolbar in the TYPO3 backend top toolbar
with various information.
Example: Display release information in "System Information" toolbar window
The event
System
gets you the object
System
on which you can call method add to add system
information items or method add to add messages.
EXT:my_extension/Classes/EventListener/AddReleaseInfoToSystemInformationEventListener.php
<?php
namespace MyVendor\MyExample\EventListener;
use TYPO3\CMS\Backend\Backend\Event\SystemInformationToolbarCollectorEvent;
use TYPO3\CMS\Backend\Toolbar\InformationStatus;
use TYPO3\CMS\Core\Attribute\AsEventListener;
#[AsEventListener(
identifier: 'my-extension/backend/add-release-info-to-system-information',
)]
final class AddReleaseInfoToSystemInformationEventListener
{
public function __invoke(SystemInformationToolbarCollectorEvent $event): void
{
[$releaseDate, $releaseHash, $releaseAge] = $this->getReleaseData();
$event->getToolbarItem()->addSystemInformation(
'Release nr / hash',
$releaseHash ?? 'n/a',
'actions-cloud-upload',
);
if ($releaseAge > 14) {
$event->getToolbarItem()->addSystemMessage(
sprintf('Release is %d days old', $releaseAge),
InformationStatus::WARNING,
1,
);
}
$event->getToolbarItem()->addSystemInformation(
'Release date',
$releaseDate ?? 'n/a',
'actions-calendar',
);
}
private function getReleaseData(): array
{
// Todo:: Implement
return ['01.10.2025 11:11:11', 'abc123', 15];
}
}
The messages will then be displayed like this:
The release information is now displayed in the "System Information" toolbar item