Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\RequestInterface $request) | |
set ($action, $flag, $value) | |
get ($action, $flag='') | |
Protected Member Functions | |
_getControllerKey () | |
Protected Attributes | |
$_request | |
$_flags = [] | |
Request processing flag that allows to stop request dispatching in action controller from an observer Downside of this approach is temporal coupling and global communication. Will be deprecated when Action Component is decoupled.
Please use plugins to prevent action dispatching instead.
@api
Definition at line 18 of file ActionFlag.php.
__construct | ( | \Magento\Framework\App\RequestInterface | $request | ) |
|
protected |
get | ( | $action, | |
$flag = '' |
|||
) |
Retrieve flag value
string | $action | |
string | $flag |
@SuppressWarnings(PHPMD.BooleanGetMethodName)
Definition at line 63 of file ActionFlag.php.
set | ( | $action, | |
$flag, | |||
$value | |||
) |
Setting flag value
string | $action | |
string | $flag | |
string | $value |
Definition at line 46 of file ActionFlag.php.
|
protected |
Definition at line 28 of file ActionFlag.php.
|
protected |
Definition at line 23 of file ActionFlag.php.