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
SuggestAttributeSets.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Controller\Adminhtml\Product
;
8
9
class
SuggestAttributeSets
extends
\Magento\Backend\App\Action
10
{
16
const
ADMIN_RESOURCE
=
'Magento_Catalog::sets'
;
17
21
protected
$resultJsonFactory
;
22
26
protected
$suggestedSet
;
27
33
public
function
__construct
(
34
\
Magento
\Backend\
App
\
Action
\
Context
$context,
35
\
Magento
\Framework\Controller\Result\
JsonFactory
$resultJsonFactory
,
36
\
Magento
\Catalog\Model\
Product
\AttributeSet\SuggestedSet
$suggestedSet
37
) {
38
parent::__construct($context);
39
$this->resultJsonFactory =
$resultJsonFactory
;
40
$this->suggestedSet =
$suggestedSet
;
41
}
42
48
public
function
execute
()
49
{
50
$resultJson = $this->resultJsonFactory->create();
51
$resultJson->setData(
52
$this->suggestedSet->getSuggestedSets($this->getRequest()->getParam(
'label_part'
))
53
);
54
return
$resultJson;
55
}
56
}
Magento\Framework\App
Magento\Catalog\Controller\Adminhtml\Product
Definition:
Product.php:14
Magento\Framework\Controller\Result\JsonFactory
Definition:
JsonFactory.php:12
Magento\Catalog\Controller\Adminhtml\Product
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets\$suggestedSet
$suggestedSet
Definition:
SuggestAttributeSets.php:26
Magento\Backend\App\Action
Definition:
Action.php:17
Magento
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets\execute
execute()
Definition:
SuggestAttributeSets.php:48
Magento\Backend\App\Action\Context
Definition:
Context.php:25
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets
Definition:
SuggestAttributeSets.php:9
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
SuggestAttributeSets.php:16
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets\__construct
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Catalog\Model\Product\AttributeSet\SuggestedSet $suggestedSet)
Definition:
SuggestAttributeSets.php:33
Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets\$resultJsonFactory
$resultJsonFactory
Definition:
SuggestAttributeSets.php:21