FluidTYPO3\Vhs\Utility\CoreUtility::getLanguageFlagIconPath PHP Method

getLanguageFlagIconPath() public static method

Returns the flag icons path depending on the current core version
public static getLanguageFlagIconPath ( ) : string
return string
    public static function getLanguageFlagIconPath()
    {
        return ExtensionManagementUtility::extPath('core') . 'Resources/Public/Icons/Flags/SVG/';
    }

Usage Example

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