Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Locale Class Reference
Inheritance diagram for Locale:
ArrayInterface OptionSourceInterface

Public Member Functions

 __construct (\Magento\Framework\Locale\ListsInterface $localeLists)
 
 toOptionArray ()
 

Protected Attributes

 $_localeLists
 

Detailed Description

@api

Since
100.0.2

Definition at line 16 of file Locale.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\Locale\ListsInterface  $localeLists)
Parameters
\Magento\Framework\Locale\ListsInterface$localeLists

Definition at line 26 of file Locale.php.

27  {
28  $this->_localeLists = $localeLists;
29  }

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )
Returns
array

Implements OptionSourceInterface.

Definition at line 34 of file Locale.php.

35  {
36  return $this->_localeLists->getOptionLocales();
37  }

Field Documentation

◆ $_localeLists

$_localeLists
protected

Definition at line 21 of file Locale.php.


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