From 9dc853c7d6b40949b230f8058aacaf7d53634bee Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Thu, 31 Oct 2024 15:07:00 +0100 Subject: [PATCH] [TASK] Rename evaluateCondition() to verdict() for Condition VH in TYPO3 13 It seems that verdict() now replaces the old function --- .../Condition/IsLuxenterpriseExtensionActivatedViewHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/ViewHelpers/Condition/IsLuxenterpriseExtensionActivatedViewHelper.php b/Classes/ViewHelpers/Condition/IsLuxenterpriseExtensionActivatedViewHelper.php index 44cf63e7..a8239c75 100644 --- a/Classes/ViewHelpers/Condition/IsLuxenterpriseExtensionActivatedViewHelper.php +++ b/Classes/ViewHelpers/Condition/IsLuxenterpriseExtensionActivatedViewHelper.php @@ -4,11 +4,12 @@ namespace In2code\Lux\ViewHelpers\Condition; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; +use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper; class IsLuxenterpriseExtensionActivatedViewHelper extends AbstractConditionViewHelper { - protected static function evaluateCondition($arguments = null): bool + public static function verdict(array $arguments, RenderingContextInterface $renderingContext) { return ExtensionManagementUtility::isLoaded('luxenterprise'); }