Algolia_Algoliasearch_Helper_Config::getMappedProductType PHP Метод

getMappedProductType() публичный Метод

Loads product type mapping from configuration (default) > algoliasearch > product_map > (product type).
public getMappedProductType ( $originalType ) : string
$originalType
Результат string
    public function getMappedProductType($originalType)
    {
        if (!isset($this->_productTypeMap[$originalType])) {
            $mappedType = (string) Mage::app()->getConfig()->getNode('default/algoliasearch/product_map/' . $originalType);
            if ($mappedType) {
                $this->_productTypeMap[$originalType] = $mappedType;
            } else {
                $this->_productTypeMap[$originalType] = $originalType;
            }
        }
        return $this->_productTypeMap[$originalType];
    }