Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SearchResultProcessorFactory.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Data;
7 
12 {
13  const DEFAULT_INSTANCE_NAME = \Magento\Framework\Data\SearchResultProcessor::class;
14 
20  protected $objectManager;
21 
27  public function __construct(
29  ) {
30  $this->objectManager = $objectManager;
31  }
32 
40  {
41  return $this->objectManager->create(static::DEFAULT_INSTANCE_NAME, ['searchResult' => $collection]);
42  }
43 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)