PHP Class Smile\ElasticsuiteCore\Index\Analysis\Config

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\Framework\Config\Data
Mostrar archivo Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
__construct ( Reader $reader, Magento\Framework\Config\CacheInterface $cache, string $cacheId = self::CACHE_ID ) Constructor.
get ( string $language = null, mixed $default = null ) : mixed Return analysis config by language.

Method Details

__construct() public method

Constructor.
public __construct ( Reader $reader, Magento\Framework\Config\CacheInterface $cache, string $cacheId = self::CACHE_ID )
$reader Smile\ElasticsuiteCore\Index\Analysis\Config\Reader Config file reader.
$cache Magento\Framework\Config\CacheInterface Cache instance.
$cacheId string Default config cache id.

get() public method

Return analysis config by language.
public get ( string $language = null, mixed $default = null ) : mixed
$language string A language code (eg: en, fr, ...).
$default mixed Default value if no config is found.
return mixed