GetViewHelper.php 911 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Opentalent\OtTemplating\ViewHelpers\Request;
  3. use Closure;
  4. use Opentalent\OtCore\ViewHelpers\OtAbstractViewHelper;
  5. use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
  6. /**
  7. * Returns the current GET request as an array.
  8. *
  9. * {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  10. *
  11. * {ot:request.get()}
  12. *
  13. * @package Opentalent\OtTemplating\ViewHelpers
  14. */
  15. class GetViewHelper extends OtAbstractViewHelper {
  16. /**
  17. * -- This method is expected by Fluid --
  18. * Renders the content as html
  19. *
  20. * @param array $arguments
  21. * @param Closure $renderChildrenClosure
  22. * @param RenderingContextInterface $renderingContext
  23. * @return array|null
  24. */
  25. public static function renderStatic(
  26. array $arguments,
  27. Closure $renderChildrenClosure,
  28. RenderingContextInterface $renderingContext
  29. ) {
  30. return $_REQUEST;
  31. }
  32. }