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-catalog
Controller
Adminhtml
Product
Reload.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Controller\Adminhtml\Product
;
7
8
use
Magento\Framework\App\Action\HttpPostActionInterface
as HttpPostActionInterface;
9
use
Magento\Framework\Controller\ResultFactory
;
10
14
class
Reload
extends
\Magento\Catalog\Controller\Adminhtml\Product
implements HttpPostActionInterface
15
{
19
public
function
execute
()
20
{
21
if
(!$this->
getRequest
()->getParam(
'set'
)) {
22
return
$this->resultFactory->create(
ResultFactory::TYPE_FORWARD
)->forward(
'noroute'
);
23
}
24
25
$product
= $this->productBuilder->build($this->
getRequest
());
26
28
$resultLayout = $this->resultFactory->create(
ResultFactory::TYPE_LAYOUT
);
29
$resultLayout->getLayout()->getUpdate()->addHandle([
'catalog_product_'
.
$product
->getTypeId()]);
30
$resultLayout->getLayout()->getUpdate()->removeHandle(
'default'
);
31
$resultLayout->setHeader(
'Content-Type'
,
'application/json'
,
true
);
32
return
$resultLayout;
33
}
34
}
Magento\Catalog\Controller\Adminhtml\Product\Reload
Definition:
Reload.php:14
Magento\Catalog\Controller\Adminhtml\Product
Definition:
Product.php:14
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
Magento\Catalog\Controller\Adminhtml\Product
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\Controller\ResultFactory\TYPE_FORWARD
const TYPE_FORWARD
Definition:
ResultFactory.php:25
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Framework\App\Action\HttpPostActionInterface
Definition:
HttpPostActionInterface.php:16
Magento\Framework\Controller\ResultFactory\TYPE_LAYOUT
const TYPE_LAYOUT
Definition:
ResultFactory.php:26