17 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
18 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
19 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
28 use CompileWithRenderStatic;
35 $this->registerArgument(
'needle',
'string',
'',
true);
36 $this->registerArgument(
'haystack',
'array',
'',
true);
51 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
53 $needle = $arguments[
'needle'];
54 $haystack = $arguments[
'haystack'];
55 if (array_key_exists($needle, $haystack)) {
56 if (isset($haystack[$needle][
'installed']) && $haystack[$needle][
'installed'] ===
true) {