Skip to content

Commit

Permalink
[TASK] Migrate TYPO3\CMS\Core\Imaging\Icon to TYPO3\CMS\Core\Imaging\…
Browse files Browse the repository at this point in the history
…IconSIze
  • Loading branch information
derhansen committed Sep 15, 2024
1 parent 03f29c1 commit 8c60d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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([
Expand Down
4 changes: 2 additions & 2 deletions Classes/Preview/AbstractPluginPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -226,7 +226,7 @@ protected function getRecordData(int $id, string $table = 'pages'): string

if (is_array($record)) {
$data = '<span data-toggle="tooltip" data-placement="top" data-title="id=' . $record['uid'] . '">'
. $this->iconFactory->getIconForRecord($table, $record, Icon::SIZE_SMALL)->render()
. $this->iconFactory->getIconForRecord($table, $record, IconSize::SMALL)->render()
. '</span> ';
$content = BackendUtility::wrapClickMenuOnIcon($data, $table, $record['uid'], '', $record);

Expand Down

0 comments on commit 8c60d1f

Please sign in to comment.