public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $content = $renderChildrenClosure(); if ($arguments['disabled']) { return $content; } return null; }