Feature: Added DeeplBaseSvgIconProvider
Description
The custom
\Web
is added to allow registration and rendering of color mode aware SVG icons,
for example as action icons on buttons.
The
\TYPO3\ lacks this
ability, because it renders <img /> tags for the inline markup usage and
\TYPO3\ is not
usable in all cases.
Example registration
EXT:my_ext/Configuration/Icons.php
<?php
declare(strict_types=1);
use WebVision\Deepl\Base\Imaging\IconProvider\DeeplBaseSvgIconProvider;
return [
'myext-color-mode-aware-icon' => [
'provider' => DeeplBaseSvgIconProvider::class,
'source' => 'EXT:my_ext/Resources/Public/Icons/color-mode-aware-icon.svg',
],
];
Copied!
Impact
Allows the registration of color mode aware SVG icons.