Console Icon

Console 

Developers usually have the browser console open anyway. This indicator prints a styled environment badge to the console on every page load — more subtle than the visible Frontend Hint, but unambiguous for the "developer view", and it never covers page content.

Environment badge printed to the browser console

Console badge

DEVELOPMENT
Copied!

The badge is printed in the frontend and in the backend, so the environment stays identifiable while working in a module as well.

You can register the indicator in your ext_localconf.php:

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

Handler::addIndicator(
    triggers: [
        new Trigger\ApplicationContext('Development*')
    ],
    indicators: [
        new Indicator\General\Console([
            'color' => '#bd593a',
        ])
    ]
);
Copied!

Additional optional configuration keys:

  • text (string): The badge text. Default is %context%, which is replaced with the current application context. An empty text disables the badge.
  • color (string): The badge background color. Default is #767676. The text color is derived automatically for optimal contrast.

The console badge can be disabled per scope via the extension configuration: frontend.console and backend.console.