/** * Returns the flag source * * @param string $iso * @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; }