Skip to content

Commit

Permalink
[FEATURE] Add replicated overrideArgument method
Browse files Browse the repository at this point in the history
Necessary due to breaking change in Fluid.
  • Loading branch information
NamelessCoder committed Jan 23, 2025
1 parent 2eaf7eb commit c0028e4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Classes/ViewHelpers/AbstractFormViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*/
Expand Down

0 comments on commit c0028e4

Please sign in to comment.