Smile\ElasticsuiteCore\Block\Adminhtml\Search\Request\RelevanceConfig\Form::getScopeCode PHP Method

getScopeCode() public method

Get current scope code
public getScopeCode ( ) : string
return string
    public function getScopeCode()
    {
        $scopeCode = $this->getData('scope_code');
        if ($scopeCode === null) {
            $scopeCode = 'default';
            if ($this->getStoreCode()) {
                $store = $this->_storeManager->getStore($this->getStoreCode());
                $scopeCode = $store->getId();
                if ($this->getContainerCode() && $this->getContainerCode() != "") {
                    $scopeCode = $this->getContainerCode() . "|" . $scopeCode;
                }
            } elseif ($this->getContainerCode()) {
                $scopeCode = $this->getContainerCode();
            }
            $this->setScopeCode($scopeCode);
        }
        return $scopeCode;
    }