From c0028e4500d4ed7e564983a6b2e906412e368a5f Mon Sep 17 00:00:00 2001 From: Claus Due Date: Thu, 23 Jan 2025 21:54:08 +0100 Subject: [PATCH] [FEATURE] Add replicated overrideArgument method Necessary due to breaking change in Fluid. --- Classes/ViewHelpers/AbstractFormViewHelper.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Classes/ViewHelpers/AbstractFormViewHelper.php b/Classes/ViewHelpers/AbstractFormViewHelper.php index 45fe8776b..95b8e0387 100755 --- a/Classes/ViewHelpers/AbstractFormViewHelper.php +++ b/Classes/ViewHelpers/AbstractFormViewHelper.php @@ -12,6 +12,7 @@ use FluidTYPO3\Flux\Form; use FluidTYPO3\Flux\Form\Container\Grid; use FluidTYPO3\Flux\Form\FormInterface; +use TYPO3\CMS\Core\Utility\VersionNumberUtility; use TYPO3Fluid\Fluid\Component\Argument\ArgumentCollection; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; @@ -27,6 +28,20 @@ abstract class AbstractFormViewHelper extends AbstractViewHelper const SCOPE_VARIABLE_CONTAINER = 'container'; const SCOPE_VARIABLE_GRIDS = 'grids'; + protected function overrideArgument( + $name, + $type, + $description, + $required = false, + $defaultValue = null, + $escape = null + ) { + if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '13.4', '>=')) { + return parent::registerArgument($name, $type, $description, $required, $defaultValue, $escape); + } + return parent::overrideArgument($name, $type, $description, $required, $defaultValue, $escape); + } + /** * @return string */