Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
OptionInterface Interface Reference
Inheritance diagram for OptionInterface:
Options ListsInterface TranslatedLists

Public Member Functions

 getOptionLocales ()
 
 getTranslatedOptionLocales ()
 

Detailed Description

Interface for classes that return array of locales.

Definition at line 11 of file OptionInterface.php.

Member Function Documentation

◆ getOptionLocales()

getOptionLocales ( )

Get array of deployed locales.

Function result has next format:

[
0 => [
'value' => 'de_DE'
'label' => 'German (Germany)'
],
1 => [
'value' => 'en_GB'
'label' => 'English (United Kingdom)'
],
]
Returns
array

Implemented in Options, and TranslatedLists.

◆ getTranslatedOptionLocales()

getTranslatedOptionLocales ( )

Get array of deployed locales with translation.

Function result has next format:

[
0 => [
'value' => 'de_DE'
'label' => 'Deutsch (Deutschland) / German (Germany)'
],
1 => [
'value' => 'en_GB'
'label' => 'English (United Kingdom) / English (United Kingdom)'
],
]
Returns
array

Implemented in Options, and TranslatedLists.


The documentation for this interface was generated from the following file: