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
framework
App
ActionFlag.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\App
;
7
18
class
ActionFlag
19
{
23
protected
$_request
;
24
28
protected
$_flags
= [];
29
33
public
function
__construct
(\
Magento
\Framework\
App
\
RequestInterface
$request
)
34
{
35
$this->_request =
$request
;
36
}
37
46
public
function
set
($action, $flag,
$value
)
47
{
48
if
(
''
=== $action) {
49
$action = $this->_request->getActionName();
50
}
51
$this->_flags[$this->
_getControllerKey
()][$action][$flag] =
$value
;
52
}
53
63
public
function
get
($action, $flag =
''
)
64
{
65
if
(
''
=== $action) {
66
$action = $this->_request->getActionName();
67
}
68
if
(
''
=== $flag) {
69
return
$this->_flags[$this->
_getControllerKey
()] ?? [];
70
}
elseif
(isset($this->_flags[$this->
_getControllerKey
()][$action][$flag])) {
71
return
$this->_flags[$this->
_getControllerKey
()][$action][$flag];
72
}
else
{
73
return
false
;
74
}
75
}
76
82
protected
function
_getControllerKey
()
83
{
84
return
$this->_request->getRouteName() .
'_'
. $this->_request->getControllerName();
85
}
86
}
Magento\Framework\App\ActionFlag\__construct
__construct(\Magento\Framework\App\RequestInterface $request)
Definition:
ActionFlag.php:33
Magento\Framework\App
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
Magento\Framework\App\ActionFlag\_getControllerKey
_getControllerKey()
Definition:
ActionFlag.php:82
Magento\Framework\App\ActionFlag
Definition:
ActionFlag.php:18
Magento\Framework\App\ActionFlag\$_request
$_request
Definition:
ActionFlag.php:23
Magento\Framework\App\ActionFlag\$_flags
$_flags
Definition:
ActionFlag.php:28
$value
$value
Definition:
gender.phtml:16
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22