Skip to content

Commit 7710361

Browse files
committed
Fix #862 - switch from evaluateCondition to verdict
1 parent ff0ee30 commit 7710361

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Classes/ViewHelpers/IfExtensionLoadedViewHelper.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace HDNET\Calendarize\ViewHelpers;
66

77
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
8+
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
89
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
910

1011
/**
@@ -22,18 +23,13 @@ public function initializeArguments(): void
2223
}
2324

2425
/**
25-
* Add the condition.
26-
*
27-
* @param array|null $arguments
28-
*
29-
* @return bool
26+
* @param array<string, mixed> $arguments
3027
*/
31-
public static function evaluateCondition($arguments = null)
28+
public static function verdict(array $arguments, RenderingContextInterface $renderingContext): bool
3229
{
3330
if (!isset($arguments['extensionKey'])) {
3431
return false;
3532
}
36-
3733
return ExtensionManagementUtility::isLoaded($arguments['extensionKey']);
3834
}
3935
}

0 commit comments

Comments
 (0)