Skip to content

Commit

Permalink
[TASK] CGL Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hojalatheef committed Dec 6, 2024
1 parent 33a070f commit fddbfc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Classes/Backend/Preview/Weather2PluginPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Weather2PluginPreview extends StandardContentPreviewRenderer

public function __construct(
protected FlexFormService $flexFormService,
protected ViewFactoryInterface $viewFactory
protected ViewFactoryInterface $viewFactory,
) {}

public function renderPageModulePreviewContent(GridColumnItem $item): string
Expand All @@ -44,7 +44,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
}

$view = $this->viewFactory->create(new ViewFactoryData(
templatePathAndFilename: self::PREVIEW_TEMPLATE
templatePathAndFilename: self::PREVIEW_TEMPLATE,
));
$view->assignMultiple($ttContentRecord);

Expand Down Expand Up @@ -76,12 +76,12 @@ protected function addPluginName(ViewInterface $view, array $ttContentRecord): v
{
$langKey = sprintf(
'plugin.%s.title',
str_replace('weather2_', '', $ttContentRecord['CType'])
str_replace('weather2_', '', $ttContentRecord['CType']),
);

$view->assign(
'pluginName',
LocalizationUtility::translate('LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:' . $langKey)
LocalizationUtility::translate('LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:' . $langKey),
);
}

Expand Down
8 changes: 4 additions & 4 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.currentweather.title',
'plugin-current-weather',
'plugins',
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.currentweather.description'
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.currentweather.description',
);

ExtensionUtility::registerPlugin(
Expand All @@ -23,7 +23,7 @@
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.weatheralert.title',
'plugin-weather-alert',
'plugins',
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.weatheralert.description'
'LLL:EXT:weather2/Resources/Private/Language/locallang_db.xlf:plugin.weatheralert.description',
);

ExtensionManagementUtility::addPiFlexFormValue(
Expand All @@ -36,7 +36,7 @@
'tt_content',
'--div--;Configuration,pi_flexform',
'weather2_currentweather',
'after:subheader'
'after:subheader',
);

ExtensionManagementUtility::addPiFlexFormValue(
Expand All @@ -49,7 +49,7 @@
'tt_content',
'--div--;Configuration,pi_flexform',
'weather2_weatheralert',
'after:subheader'
'after:subheader',
);

$GLOBALS['TCA']['tt_content']['types']['weather2_currentweather']['previewRenderer'] = Weather2PluginPreview::class;
Expand Down
4 changes: 2 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
CurrentWeatherController::class => 'show',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);

ExtensionUtility::configurePlugin(
Expand All @@ -26,6 +26,6 @@
WeatherAlertController::class => 'show',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT,
);
});

0 comments on commit fddbfc6

Please sign in to comment.