Skip to content

Commit

Permalink
[TASK] Simplyfy access to configuration in ContentListOptionsViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 19, 2023
1 parent 24f1f0b commit 1856998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/Data/ContentListOptionsViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function initializeArguments(): void
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext): string
{
$settings = GeneralUtility::makeInstance(ConfigurationManagerInterface::class)
->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'blog');
$listTypeConfiguration = $settings['settings']['contentListOptions'][$arguments['listType']] ?? [];
->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, 'blog');
$listTypeConfiguration = $settings['contentListOptions'][$arguments['listType']] ?? [];
$data = array_merge(
$listTypeConfiguration,
[
Expand Down

0 comments on commit 1856998

Please sign in to comment.