Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-config
Model
Config
Source
Website
OptionHash.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Source\Website
;
7
8
use
Magento\Framework\Option\ArrayInterface
;
9
use
Magento\Store\Model\System\Store
;
10
15
class
OptionHash
implements
ArrayInterface
16
{
22
protected
$_systemStore
;
23
27
protected
$_withDefaultWebsite
;
28
33
public
function
__construct
(
Store
$systemStore, $withDefaultWebsite =
false
)
34
{
35
$this->_systemStore = $systemStore;
36
$this->_withDefaultWebsite = $withDefaultWebsite;
37
}
38
44
public
function
toOptionArray
()
45
{
46
return
$this->_systemStore->getWebsiteOptionHash($this->_withDefaultWebsite);
47
}
48
}
Magento\Config\Model\Config\Source\Website\OptionHash\toOptionArray
toOptionArray()
Definition:
OptionHash.php:44
Magento\Config\Model\Config\Source\Website\OptionHash\$_withDefaultWebsite
$_withDefaultWebsite
Definition:
OptionHash.php:27
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Website\OptionHash
Definition:
OptionHash.php:15
Magento\Store\Model\System\Store
Definition:
Store.php:16
Magento\Config\Model\Config\Source\Website
Definition:
AdminOptionHash.php:6
Magento\Config\Model\Config\Source\Website\OptionHash\$_systemStore
$_systemStore
Definition:
OptionHash.php:22
Magento\Config\Model\Config\Source\Website\OptionHash\__construct
__construct(Store $systemStore, $withDefaultWebsite=false)
Definition:
OptionHash.php:33