public static function renderStatic(
        array $arguments,
        \Closure $renderChildrenClosure,
        RenderingContextInterface $renderingContext
    ) {
        $content = trim($renderChildrenClosure());

        return preg_match('%^https?\:\/\/%', $content) ?
            htmlspecialchars($content) : '{{ path \'/'.ltrim($content, '/').'\' }}';
    }
public static function renderStatic(
        array $arguments,
        \Closure $renderChildrenClosure,
        RenderingContextInterface $renderingContext
    ) {
        $content = trim($renderChildrenClosure());

        return preg_match('%^https?\:\/\/%', $content) ?
            htmlspecialchars($content) : '{{ path \'/'.ltrim($content, '/').'\' }}';
    }
public static function renderStatic ( array $ arguments , \ Closure $ renderChildrenClosure , RenderingContextInterface $ renderingContext ) { $ content = trim ( $ renderChildrenClosure ( ) ) ; return preg_match ( '%^https?\:\/\/%' , $ content ) ? htmlspecialchars ( $ content ) : '{{ path \'/' . ltrim ( $ content , '/' ) . '\' }}' ; }
Render a resource URL for Fractal, possibly treated with the `path` view helper

@param array $arguments
@param \Closure $renderChildrenClosure
@param RenderingContextInterface $renderingContext

@return string
Render a resource URL for Fractal possibly treated with the path view helper