From 8c60d1fca98b6266c31847399beaf39a7d15f3b0 Mon Sep 17 00:00:00 2001 From: Torben Hansen Date: Sun, 15 Sep 2024 13:45:26 +0200 Subject: [PATCH] [TASK] Migrate TYPO3\CMS\Core\Imaging\Icon to TYPO3\CMS\Core\Imaging\IconSIze --- Classes/Controller/AdministrationController.php | 4 ++-- Classes/Preview/AbstractPluginPreviewRenderer.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/AdministrationController.php b/Classes/Controller/AdministrationController.php index caebb1f6a..e1d90354f 100644 --- a/Classes/Controller/AdministrationController.php +++ b/Classes/Controller/AdministrationController.php @@ -30,8 +30,8 @@ use TYPO3\CMS\Backend\Template\ModuleTemplateFactory; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; -use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; +use TYPO3\CMS\Core\Imaging\IconSize; use TYPO3\CMS\Core\Localization\LanguageService; use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity; @@ -135,7 +135,7 @@ protected function registerDocHeaderButtons(ModuleTemplate $moduleTemplate): voi ]; foreach ($buttons as $tableConfiguration) { $title = $this->getLanguageService()->sL(self::LANG_FILE . $tableConfiguration['label']); - $icon = $this->iconFactory->getIcon($tableConfiguration['icon'], Icon::SIZE_SMALL); + $icon = $this->iconFactory->getIcon($tableConfiguration['icon'], IconSize::SMALL); $viewButton = $buttonBar->makeLinkButton() ->setHref($tableConfiguration['link']) ->setDataAttributes([ diff --git a/Classes/Preview/AbstractPluginPreviewRenderer.php b/Classes/Preview/AbstractPluginPreviewRenderer.php index 00c70d149..4bed52ec1 100644 --- a/Classes/Preview/AbstractPluginPreviewRenderer.php +++ b/Classes/Preview/AbstractPluginPreviewRenderer.php @@ -14,8 +14,8 @@ use TYPO3\CMS\Backend\Preview\PreviewRendererInterface; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem; -use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; +use TYPO3\CMS\Core\Imaging\IconSize; use TYPO3\CMS\Core\Localization\LanguageService; use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -226,7 +226,7 @@ protected function getRecordData(int $id, string $table = 'pages'): string if (is_array($record)) { $data = '' - . $this->iconFactory->getIconForRecord($table, $record, Icon::SIZE_SMALL)->render() + . $this->iconFactory->getIconForRecord($table, $record, IconSize::SMALL)->render() . ' '; $content = BackendUtility::wrapClickMenuOnIcon($data, $table, $record['uid'], '', $record);