Classes/Utility/ExtensionUtility.php
public static function locallang(string $extensionKey, string $fileName = 'locallang.xlf', string $prefix = 'LLL:EXT:', string $separator = ':'): string {
    $languageFolder = self::languageFolder($extensionKey, $prefix);

    return "${languageFolder}/${fileName}${separator}";
  }
public static function locallang(string $extensionKey, string $fileName = 'locallang.xlf', string $prefix = 'LLL:EXT:', string $separator = ':'): string {
    $languageFolder = self::languageFolder($extensionKey, $prefix);

    return "${languageFolder}/${fileName}${separator}";
  }
public static function locallang ( string $ extensionKey , string $ fileName = 'locallang.xlf' , string $ prefix = 'LLL:EXT:' , string $ separator = ':' ) : string { $ languageFolder = self :: languageFolder ( $ extensionKey , $ prefix ) ; return "${languageFolder}/${fileName}${separator}" ; }
Gets the locallang file from an extension key.

@param string $extensionKey The extension key
@param string $prefix The optional file name of the locallang file, defaults to `locallang.xlf`
@param string $prefix The optional prefix, defaults to `LLL:EXT:`
@param string $separator The optional separator, defaults to `:`
@return string The locallang file
Gets the locallang file from an extension key .