Skip to content

Commit

Permalink
[TASK] Migrate icon registration
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer authored and dkd-kaehm committed Aug 15, 2023
1 parent bdc3843 commit 0fe8b6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
9 changes: 9 additions & 0 deletions Configuration/Icons.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return [
'extensions-tika-module-tikacontrolpanel' => [
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
'source' => 'EXT:solr/Resources/Public/Images/Icons/module-tika.svg',
],

];
13 changes: 0 additions & 13 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers'][$statusSection][] =
\ApacheSolrForTypo3\Tika\Report\TikaStatus::class;
$extIconPath = 'EXT:tika/Resources/Public/Images/Icons/';

$modulePrefix = 'extensions-tika-module';
$svgProvider = \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class;

/* @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */ // register all module icons with extensions-solr-module-modulename
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);

$iconRegistry->registerIcon(
$modulePrefix . '-tikacontrolpanel',
$svgProvider,
['source' => $extIconPath . 'module-tika.svg']
);

if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('solr')) {
$tikaExtensionConfiguration = \ApacheSolrForTypo3\Tika\Util::getTikaExtensionConfiguration();
Expand Down

0 comments on commit 0fe8b6d

Please sign in to comment.