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-variable
Controller
Adminhtml
System
Variable
Edit.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Variable\Controller\Adminhtml\System\Variable
;
8
15
class
Edit
extends
\Magento\Variable\Controller\Adminhtml\System\Variable
16
{
22
public
function
execute
()
23
{
24
$variable
= $this->
_initVariable
();
25
26
$resultPage = $this->createPage();
27
$resultPage->getConfig()->getTitle()->prepend(
__
(
'Custom Variables'
));
28
$resultPage->getConfig()->getTitle()->prepend(
29
$variable
->getId() ?
$variable
->getCode() :
__
(
'New Custom Variable'
)
30
);
31
$resultPage->addContent($resultPage->getLayout()->createBlock(
32
\
Magento
\
Variable
\Block\System\
Variable
\Edit::class
33
))->addJs(
34
$resultPage->getLayout()->createBlock(
35
\
Magento
\Framework\View\Element\Template::class,
36
''
,
37
[
'data'
=> [
'template'
=>
'Magento_Variable::system/variable/js.phtml'
]]
38
)
39
);
40
return
$resultPage;
41
}
42
}
Magento\Variable\Controller\Adminhtml\System\Variable\_initVariable
_initVariable()
Definition:
Variable.php:92
__
__()
Definition:
__.php:13
Magento\Variable\Controller\Adminhtml\System\Variable\Edit
Definition:
Edit.php:15
$variable
$variable
Definition:
variable.php:7
Magento
Magento\Variable\Controller\Adminhtml\System\Variable
Definition:
Variable.php:13
Magento\Variable\Controller\Adminhtml\System\Variable
Definition:
Delete.php:7
Magento\Variable\Controller\Adminhtml\System\Variable\Edit\execute
execute()
Definition:
Edit.php:22