Backend toolbar item

The backend toolbar item will show the current project version and environment.

Backend toolbar item

Backend toolbar item

You can adjust the color of the toolbar item in your ext_localconf.php:

ext_localconf.php
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Handler;
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Indicator;
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Trigger;

Configuration\Handler::addIndicator(
    triggers: [
        new Trigger\ApplicationContext('Testing')
    ],
    indicators: [
        new Indicator\Backend\Toolbar([
            'color' => '#bd593a',
        ])
    ]
);
Copied!

Additional optional configuration keys:

  • text (string): The text of the toolbar item. Default is the application context.
  • icon (string): The icon of the toolbar item. Default is information-application-context.
  • index (int): The positioning index of the toolbar item. Default is 0.