-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add CSS class for TYPO3 12 to allow backporting of some design
- Loading branch information
1 parent
c97f198
commit 5dc321d
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
namespace In2code\Lux\ViewHelpers\Condition; | ||
|
||
use In2code\Lux\Utility\ConfigurationUtility; | ||
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; | ||
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper; | ||
|
||
/** | ||
* @noinspection PhpUnused | ||
* Todo: Can be removed when TYPO3 12 support is dropped | ||
*/ | ||
class IsTypo3TwelveViewHelper extends AbstractConditionViewHelper | ||
{ | ||
public static function verdict(array $arguments, RenderingContextInterface $renderingContext) | ||
{ | ||
return ConfigurationUtility::isTypo3Version12(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters