Configuration Utility
Generally the whole configuration can be found in
$GLOBALS
.
You can/should use the Configuration
to easily add
necessary configuration for the environment indicator.
// Add a colorized favicon modifier, add a colorful backend toolbar item and unset the frontend hint for the Development context
\KonradMichalik\Typo3EnvironmentIndicator\Utility\ConfigurationUtility::configByContext(
applicationContext: 'Development',
faviconModifierConfiguration: [
\KonradMichalik\Typo3EnvironmentIndicator\Image\ColorizeModifier::class =>
[
'color' => '#039BE5',
]
],
faviconModifierFrontendConfiguration: [
\KonradMichalik\Typo3EnvironmentIndicator\Image\ColorizeModifier::class =>
[
'opacity' => 0.5 // Change just the opacity for the frontend favicon configuration
]
],
frontendHintConfiguration: null, // Unset frontend hint for Development context
backendToolbarConfiguration: [
'color' => '#039BE5',
]
);
- class ConfigurationUtility
-
- Fully qualified name
-
\Konrad
Michalik\ Typo3Environment Indicator\ Utility\ Configuration Utility
Utility class to easily configure the environment indicators.
- configByContext ( $applicationContext, $frontendHintConfiguration = [], $backendToolbarConfiguration = [], $faviconModifierConfiguration = [], $faviconModifierFrontendConfiguration = [], $faviconModifierBackendConfiguration = [])
-
Simple function to update the status of a record.
- param string $applicationContext
-
Name of the TYPO3 application context.
- param array|null $frontendHintConfiguration
-
Configuration for the frontend hint. Set to
null
to unset the configuration. - param array|null $backendToolbarConfiguration
-
Configuration for the backend toolbar item. Set to
null
to unset the configuration. - param array|null $faviconModifierConfiguration
-
Configuration for the favicon modification. This configuration applies to frontend and backend. Set to
null
to unset the configuration. - param array|null $faviconModifierFrontendConfiguration
-
Frontend configuration for the favicon modification. Set to
null
to unset the configuration. - param array|null $faviconModifierBackendConfiguration
-
Frontend configuration for the favicon modification. Set to
null
to unset the configuration. - returntype
-
void