Class LanguageProvider
Class LanguageProvider
- LanguageProvider implements LanguageProviderInterface
Methods summary
public
getCodeById( IdType $id )
: LanguageCode
Returns the language code from a specific language, selected by the language ID.
public
getDirectoryById( IdType $id )
: string
Returns the directory from the a specific language, selected by the language ID.
public
getCharsetById( IdType $id )
: string
Returns the charset from the a specific language, selected by the language ID.
public
getIdByCode( LanguageCode $code )
: integer
Returns the ID from the a specific language, selected by the language code.
public
getDirectoryByCode( LanguageCode $code )
: string
Returns the directory from the a specific language, selected by the language code.
public
getCharsetByCode( LanguageCode $code )
: string
Returns the charset from the a specific language, selected by the language code.
public
getIconFilenameByCode( LanguageCode $code )
: string
Returns the icon for a specific language by a given language code.
public
getIdByDirectory( StringType $directory )
: integer
Returns the language id of the provided directory name.