‪TYPO3CMS  10.4
TYPO3\CMS\Core\Service\IsoCodeService Class Reference

Public Member Functions

array renderIsoCodeSelectDropdown (array $conf=[])
 

Protected Member Functions

array getIsoCodes ()
 
TYPO3 CMS Core Localization LanguageService getLanguageService ()
 

Detailed Description

Helper functionality for dealing with ISO codes.

This class is not part of the TYPO3 Core API.

Definition at line 23 of file IsoCodeService.php.

Member Function Documentation

◆ getIsoCodes()

array TYPO3\CMS\Core\Service\IsoCodeService::getIsoCodes ( )
protected

Returns the list of ISO 639-1 codes.

List taken from http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Returns
‪array

Definition at line 59 of file IsoCodeService.php.

Referenced by TYPO3\CMS\Core\Service\IsoCodeService\renderIsoCodeSelectDropdown().

◆ getLanguageService()

TYPO3 CMS Core Localization LanguageService TYPO3\CMS\Core\Service\IsoCodeService::getLanguageService ( )
protected

Returns LanguageService

Returns
‪\TYPO3\CMS\Core\Localization\LanguageService

Definition at line 255 of file IsoCodeService.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Service\IsoCodeService\renderIsoCodeSelectDropdown().

◆ renderIsoCodeSelectDropdown()

array TYPO3\CMS\Core\Service\IsoCodeService::renderIsoCodeSelectDropdown ( array  $conf = [])

Renders a select dropdown with ISO 639-1 codes.

Parameters
array$conf
Returns
‪array

Definition at line 31 of file IsoCodeService.php.

References TYPO3\CMS\Core\Service\IsoCodeService\getIsoCodes(), and TYPO3\CMS\Core\Service\IsoCodeService\getLanguageService().