Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer::getRootCategoryId PHP Method

getRootCategoryId() protected method

Retrieve store root category id.
protected getRootCategoryId ( Magento\Store\Api\Data\StoreInterface | integer | string $store ) : integer
$store Magento\Store\Api\Data\StoreInterface | integer | string Store id.
return integer
    protected function getRootCategoryId($store)
    {
        if (is_numeric($store) || is_string($store)) {
            $store = $this->getStore($store);
        }
        $storeGroupId = $store->getStoreGroupId();
        return $this->storeManager->getGroup($storeGroupId)->getRootCategoryId();
    }