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
Domain
Staging.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Theme\Model\Theme\Domain
;
11
12
class
Staging
implements
\Magento\Framework\View\Design\Theme\Domain\StagingInterface
13
{
19
protected
$_theme
;
20
24
protected
$_themeCopyService
;
25
30
public
function
__construct
(
31
\
Magento
\Framework\View\
Design
\
ThemeInterface
$theme
,
32
\
Magento
\
Theme
\Model\
CopyService
$themeCopyService
33
) {
34
$this->_theme =
$theme
;
35
$this->_themeCopyService = $themeCopyService;
36
}
37
43
public
function
updateFromStagingTheme
()
44
{
45
$this->_themeCopyService->copy($this->_theme, $this->_theme->getParentTheme());
46
return
$this;
47
}
48
}
Magento\Theme\Model\Theme\Domain
Definition:
VirtualTest.php:6
Magento\Theme\Model\Theme
Definition:
Theme.php:36
Magento\Theme\Model\Design
Definition:
Design.php:27
Magento\Theme\Model\Theme\Domain\Staging\$_themeCopyService
$_themeCopyService
Definition:
Staging.php:24
Magento\Theme\Model\Theme\Domain\Staging\__construct
__construct(\Magento\Framework\View\Design\ThemeInterface $theme, \Magento\Theme\Model\CopyService $themeCopyService)
Definition:
Staging.php:30
Magento\Framework\DataObject\Copy
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Theme\Model\Theme\Domain\Staging\updateFromStagingTheme
updateFromStagingTheme()
Definition:
Staging.php:43
Magento\Framework\View\Design\Theme\Domain\StagingInterface
Definition:
StagingInterface.php:11
Magento
$theme
$theme
Definition:
theme_rollback.php:9
Magento\Theme\Model\Theme\Domain\Staging\$_theme
$_theme
Definition:
Staging.php:19
Magento\Theme\Model\Theme\Domain\Staging
Definition:
Staging.php:12