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

Public Member Functions

array renderIsoCodeSelectDropdown (array $conf=[])
 

Protected Member Functions

array getIsoCodes ()
 
 getLanguageService ()
 

Detailed Description

Helper functionality for dealing with ISO codes.

This class is not part of the TYPO3 Core API.

Definition at line 25 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 60 of file IsoCodeService.php.

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

◆ getLanguageService()

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

◆ renderIsoCodeSelectDropdown()

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

Renders a select dropdown with ISO 639-1 codes.

Returns
‪array

Definition at line 32 of file IsoCodeService.php.

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