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-backend
App
Action
Plugin
MassactionKey.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Backend\App\Action\Plugin
;
9
10
use
Magento\Framework\App\RequestInterface
;
11
use
Magento\Backend\App\AbstractAction
;
12
13
class
MassactionKey
14
{
24
public
function
beforeDispatch
(
AbstractAction
$subject,
RequestInterface
$request
)
25
{
26
$key =
$request
->getPost(
'massaction_prepare_key'
);
27
if
($key) {
28
$postData
=
$request
->getPost($key);
29
$value
= is_array(
$postData
) ?
$postData
: explode(
','
,
$postData
);
30
$request
->setPostValue($key,
$value
?
$value
:
null
);
31
}
32
}
33
}
Magento\Backend\App\AbstractAction
Definition:
AbstractAction.php:16
Magento\Backend\App\Action\Plugin\MassactionKey\beforeDispatch
beforeDispatch(AbstractAction $subject, RequestInterface $request)
Definition:
MassactionKey.php:24
Magento\Backend\App\Action\Plugin\MassactionKey
Definition:
MassactionKey.php:13
$value
$value
Definition:
gender.phtml:16
Magento\Backend\App\Action\Plugin
Definition:
Authentication.php:6
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
$postData
$postData
Definition:
new_default_list.phtml:45