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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-variable
Controller
Adminhtml
System
Variable
Validate.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Variable\Controller\Adminhtml\System\Variable
;
8
14
class
Validate
extends
\Magento\Variable\Controller\Adminhtml\System\Variable
15
{
21
public
function
execute
()
22
{
23
$response
= new \Magento\Framework\DataObject([
'error'
=>
false
]);
24
$variable
= $this->
_initVariable
();
25
$variable
->addData($this->
getRequest
()->getPost(
'variable'
));
26
$result
=
$variable
->validate();
27
if
(
$result
instanceof \
Magento
\Framework\Phrase) {
28
$this->messageManager->addError(
$result
->getText());
29
$layout = $this->layoutFactory->create();
30
$layout->initMessages();
31
$response
->setError(
true
);
32
$response
->setHtmlMessage($layout->getMessagesBlock()->getGroupedHtml());
33
}
35
$resultJson = $this->resultJsonFactory->create();
36
return
$resultJson->setData(
$response
->toArray());
37
}
38
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
$response
$response
Definition:
404.php:11
Magento\Variable\Controller\Adminhtml\System\Variable\_initVariable
_initVariable()
Definition:
Variable.php:92
Magento\Variable\Controller\Adminhtml\System\Variable\Validate
Definition:
Validate.php:14
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
$variable
$variable
Definition:
variable.php:7
Magento\Framework\App\ActionInterface\execute
execute()
Magento
Magento\Variable\Controller\Adminhtml\System\Variable
Definition:
Variable.php:13
Magento\Variable\Controller\Adminhtml\System\Variable
Definition:
Delete.php:7