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
Api
Search
SearchResultFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Api\Search
;
7
8
class
SearchResultFactory
9
{
15
protected
$_objectManager
;
16
22
protected
$_instanceName
=
null
;
23
28
public
function
__construct
(
29
\
Magento
\Framework\
ObjectManagerInterface
$objectManager
,
30
$instanceName = \
Magento
\Framework\Api\Search\SearchResult::class
31
) {
32
$this->_objectManager =
$objectManager
;
33
$this->_instanceName = $instanceName;
34
}
35
42
public
function
create
(array
$data
= [])
43
{
44
return
$this->_objectManager->create($this->_instanceName,
$data
);
45
}
46
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Api\Search\SearchResultFactory\$_instanceName
$_instanceName
Definition:
SearchResultFactory.php:22
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Api\Search
Definition:
AggregationInterface.php:6
Magento
Magento\Framework\Api\Search\SearchResultFactory
Definition:
SearchResultFactory.php:8
Magento\Framework\Api\Search\SearchResultFactory\create
create(array $data=[])
Definition:
SearchResultFactory.php:42
Magento\Framework\Api\Search\SearchResultFactory\$_objectManager
$_objectManager
Definition:
SearchResultFactory.php:15
Magento\Framework\Api\Search\SearchResultFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Api\Search\SearchResult::class)
Definition:
SearchResultFactory.php:28