* @author Timo Hund */ class CurrentSearchViewHelper extends AbstractUriViewHelper { /** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $previousRequest = static::getUsedSearchRequestFromRenderingContext($renderingContext); $uri = self::getSearchUriBuilder($renderingContext)->getCurrentSearchUri($previousRequest); return $uri; } }