File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace HDNET \Calendarize \ViewHelpers ;
66
77use TYPO3 \CMS \Core \Utility \ExtensionManagementUtility ;
8+ use TYPO3Fluid \Fluid \Core \Rendering \RenderingContextInterface ;
89use 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}
You can’t perform that action at this time.
0 commit comments