Smile\ElasticsuiteCore\Controller\Adminhtml\Search\Request\RelevanceConfig\AbstractScopeConfig::isSectionAllowed PHP Method

isSectionAllowed() protected method

Sets scope for backend config
protected isSectionAllowed ( string $sectionId ) : boolean
$sectionId string The section being viewed/edited/saved
return boolean
    protected function isSectionAllowed($sectionId)
    {
        $container = $this->getRequest()->getParam('container');
        $store = $this->getRequest()->getParam('store');
        if ($store) {
            $this->backendConfig->setStore($store);
        } elseif ($container) {
            $this->backendConfig->setContainer($container);
        }
        return $this->sectionChecker->isSectionAllowed($sectionId);
    }