-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
Copy pathOptionInterface.php
54 lines (52 loc) · 1.22 KB
/
OptionInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Locale;
/**
* Interface for classes that return array of locales.
*/
interface OptionInterface
{
/**
* Get array of deployed locales.
*
* Function result has next format:
* ```php
* [
* 0 => [
* 'value' => 'de_DE'
* 'label' => 'German (Germany)'
* ],
* 1 => [
* 'value' => 'en_GB'
* 'label' => 'English (United Kingdom)'
* ],
* ]
* ```
*
* @return array
*/
public function getOptionLocales();
/**
* Get array of deployed locales with translation.
*
* Function result has next format:
* ```php
* [
* 0 => [
* 'value' => 'de_DE'
* 'label' => 'Deutsch (Deutschland) / German (Germany)'
* ],
* 1 => [
* 'value' => 'en_GB'
* 'label' => 'English (United Kingdom) / English (United Kingdom)'
* ],
* ]
* ```
*
* @return array
*/
public function getTranslatedOptionLocales();
}