Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Engine.php
Go to the documentation of this file.
1 <?php
7 
11 
15 class Engine implements EngineInterface
16 {
23 
27  private $indexScopeResolver;
28 
35  public function __construct(
37  IndexScopeResolver $indexScopeResolver
38  ) {
39  $this->catalogProductVisibility = $catalogProductVisibility;
40  $this->indexScopeResolver = $indexScopeResolver;
41  }
42 
48  public function getAllowedVisibility()
49  {
50  return $this->catalogProductVisibility->getVisibleInSiteIds();
51  }
52 
58  public function allowAdvancedIndex()
59  {
60  return false;
61  }
62 
67  {
68  return $value;
69  }
70 
80  public function prepareEntityIndex($index, $separator = ' ')
81  {
82  return $index;
83  }
84 
88  public function isAvailable()
89  {
90  return true;
91  }
92 }
__construct(Visibility $catalogProductVisibility, IndexScopeResolver $indexScopeResolver)
Definition: Engine.php:35
$value
Definition: gender.phtml:16
prepareEntityIndex($index, $separator=' ')
Definition: Engine.php:80
$index
Definition: list.phtml:44