Smile\ElasticsuiteCatalog\Model\Autocomplete\Category\ItemFactory::getCategoryNameById PHP Method

getCategoryNameById() private method

Retrieve a category name by it's id, and store it in local cache
private getCategoryNameById ( integer $categoryId, integer $storeId ) : string
$categoryId integer The category Id
$storeId integer The store Id
return string
    private function getCategoryNameById($categoryId, $storeId)
    {
        if (!isset($this->categoryNames[$categoryId])) {
            $categoryResource = $this->categoryResource;
            $this->categoryNames[$categoryId] = $categoryResource->getAttributeRawValue($categoryId, "name", $storeId);
        }
        return $this->categoryNames[$categoryId];
    }