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;
}