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-cms
Model
Page
Source
Theme.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Cms\Model\Page\Source
;
7
8
use
Magento\Framework\Data\OptionSourceInterface
;
9
use
Magento\Framework\View\Design\Theme\Label\ListInterface
;
10
14
class
Theme
implements
OptionSourceInterface
15
{
19
protected
$themeList
;
20
26
public
function
__construct
(
ListInterface
$themeList
)
27
{
28
$this->themeList =
$themeList
;
29
}
30
36
public
function
toOptionArray
()
37
{
38
$options
[] = [
'label'
=>
'Default'
,
'value'
=>
''
];
39
return
array_merge(
$options
, $this->themeList->getLabels());
40
}
41
}
Magento\Cms\Model\Page\Source\Theme\toOptionArray
toOptionArray()
Definition:
Theme.php:36
Magento\Cms\Model\Page\Source\Theme
Definition:
Theme.php:14
Magento\Framework\View\Design\Theme\Label\ListInterface
Definition:
ListInterface.php:14
Magento\Cms\Model\Page\Source\Theme\__construct
__construct(ListInterface $themeList)
Definition:
Theme.php:26
Magento\Cms\Model\Page\Source\Theme\$themeList
$themeList
Definition:
Theme.php:19
Magento\Framework\Data\OptionSourceInterface
Definition:
OptionSourceInterface.php:14
Magento\Cms\Model\Page\Source
Definition:
CustomLayout.php:6
$options
$options
Definition:
multiple_mixed_products.php:29