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-theme
Model
Theme
Source
Theme.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Theme\Model\Theme\Source
;
11
12
use
Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
;
13
use
Magento\Framework\View\Design\Theme\Label
;
14
19
class
Theme
extends
AbstractSource
20
{
24
protected
$themeLabel
;
25
29
public
function
__construct
(
Label
$themeLabel
)
30
{
31
$this->themeLabel =
$themeLabel
;
32
}
33
40
public
function
getAllOptions
($withEmpty =
true
)
41
{
42
$label
= $withEmpty ?
__
(
'-- Please Select --'
) : $withEmpty;
43
return
$this->_options = $this->themeLabel->getLabelsCollection(
$label
);
44
}
45
}
Magento\Framework\View\Design\Theme\Label
Definition:
ListInterface.php:6
Magento\Theme\Model\Theme\Source\Theme\$themeLabel
$themeLabel
Definition:
Theme.php:24
Magento\Framework\View\Design\Theme\Label
Definition:
Label.php:12
__
__()
Definition:
__.php:13
$label
$label
Definition:
details.phtml:21
Magento\Theme\Model\Theme\Source
Definition:
ThemeTest.php:6
Magento\Theme\Model\Theme\Source\Theme
Definition:
Theme.php:19
Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
Definition:
AbstractSource.php:16
Magento\Theme\Model\Theme\Source\Theme\__construct
__construct(Label $themeLabel)
Definition:
Theme.php:29
Magento\Theme\Model\Theme\Source\Theme\getAllOptions
getAllOptions($withEmpty=true)
Definition:
Theme.php:40