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

getScope() public method

Retrieve current scope
public getScope ( ) : string
return string
    public function getScope()
    {
        $scope = $this->getData('scope');
        if ($scope === null) {
            $scope = ContainerScopeInterface::SCOPE_DEFAULT;
            if ($this->getContainerCode()) {
                $scope = ContainerScopeInterface::SCOPE_CONTAINERS;
            }
            if ($this->getStoreCode()) {
                $scope = ContainerScopeInterface::SCOPE_STORE_CONTAINERS;
            }
            $this->setScope($scope);
        }
        return $scope;
    }