FluidTYPO3\Vhs\ViewHelpers\Page\LanguageMenuViewHelper::getLanguageFlagSrc PHP Method

getLanguageFlagSrc() protected method

Returns the flag source
protected getLanguageFlagSrc ( string $iso ) : string
$iso string
return string
    protected function getLanguageFlagSrc($iso)
    {
        if ('' !== $this->arguments['flagPath']) {
            $path = trim($this->arguments['flagPath']);
        } else {
            $path = CoreUtility::getLanguageFlagIconPath();
        }
        $imgType = trim($this->arguments['flagImageType']);
        return $path . strtoupper($iso) . '.' . $imgType;
    }