@api
- Since
- 100.1.0
Definition at line 16 of file EngineResolver.php.
◆ __construct()
- Parameters
-
ScopeConfigInterface | $scopeConfig | |
array | $engines | |
string | $path | |
string | $scopeType | |
string | $scopeCode | |
Definition at line 68 of file EngineResolver.php.
80 $this->engines = $engines;
◆ getCurrentSearchEngine()
getCurrentSearchEngine |
( |
| ) |
|
Returns Current Search Engine
It returns string identifier of Search Engine that is currently chosen in configuration
- Returns
- string
- Since
- 100.1.0
Implements EngineResolverInterface.
Definition at line 92 of file EngineResolver.php.
94 $engine = $this->scopeConfig->getValue(
100 if (in_array($engine, $this->engines)) {
103 $this->logger->error(
104 $engine .
' search engine doesn\'t exists. Falling back to ' . self::CATALOG_SEARCH_MYSQL_ENGINE
const CATALOG_SEARCH_MYSQL_ENGINE
◆ $path
◆ $scopeCode
◆ $scopeConfig
◆ $scopeType
◆ CATALOG_SEARCH_MYSQL_ENGINE
const CATALOG_SEARCH_MYSQL_ENGINE = 'mysql' |
The documentation for this class was generated from the following file: