FluidTYPO3\Vhs\ViewHelpers\Uri\GravatarViewHelper::renderStatic PHP Méthode

renderStatic() public static méthode

public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
Résultat mixed
    public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
    {
        $email = $arguments['email'];
        $size = $arguments['size'];
        $imageSet = $arguments['imageSet'];
        $maximumRating = $arguments['maximumRating'];
        $secure = (bool) $arguments['secure'];
        $url = true === $secure ? self::GRAVATAR_SECURE_BASEURL : self::GRAVATAR_BASEURL;
        $url .= md5(strtolower(trim($email)));
        $query = http_build_query(array('s' => $size, 'd' => $imageSet, 'r' => $maximumRating));
        $url .= false === empty($query) ? '?' . $query : '';
        return $url;
    }