public function execute()
    {
        $current = $this->getRequest()->getParam('section');
        $container = $this->getRequest()->getParam('container');
        $store = $this->getRequest()->getParam('store');

        /** @var $section \Magento\Config\Model\Config\Structure\Element\Section */
        $section = $this->configStructure->getElement($current);

        if ($current && !$section->isVisible($container, $store)) {
            /** @var \Magento\Backend\Model\View\Result\Redirect $redirectResult */
            $redirectResult = $this->resultRedirectFactory->create();

            return $redirectResult->setPath('adminhtml/*/', ['container' => $container, 'store' => $store]);
        }

        /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
        $resultPage = $this->resultPageFactory->create();
        $resultPage->setActiveMenu('Smile_ElasticsuiteCore::manage_relevance');
        $resultPage->getLayout()->getBlock('menu')->setAdditionalCacheKeyInfo([$current]);
        $resultPage->addBreadcrumb(__('Search Engine'), __('Relevance'));
        $resultPage->getConfig()->getTitle()->prepend(__('Relevance configuration'));

        return $resultPage;
    }
public function execute()
    {
        $current = $this->getRequest()->getParam('section');
        $container = $this->getRequest()->getParam('container');
        $store = $this->getRequest()->getParam('store');

        /** @var $section \Magento\Config\Model\Config\Structure\Element\Section */
        $section = $this->configStructure->getElement($current);

        if ($current && !$section->isVisible($container, $store)) {
            /** @var \Magento\Backend\Model\View\Result\Redirect $redirectResult */
            $redirectResult = $this->resultRedirectFactory->create();

            return $redirectResult->setPath('adminhtml/*/', ['container' => $container, 'store' => $store]);
        }

        /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
        $resultPage = $this->resultPageFactory->create();
        $resultPage->setActiveMenu('Smile_ElasticsuiteCore::manage_relevance');
        $resultPage->getLayout()->getBlock('menu')->setAdditionalCacheKeyInfo([$current]);
        $resultPage->addBreadcrumb(__('Search Engine'), __('Relevance'));
        $resultPage->getConfig()->getTitle()->prepend(__('Relevance configuration'));

        return $resultPage;
    }
public function execute ( ) { $ current = $ this -> getRequest ( ) -> getParam ( 'section' ) ; $ container = $ this -> getRequest ( ) -> getParam ( 'container' ) ; $ store = $ this -> getRequest ( ) -> getParam ( 'store' ) ; /** @var $section \Magento\Config\Model\Config\Structure\Element\Section */ $ section = $ this -> configStructure -> getElement ( $ current ) ; if ( $ current && ! $ section -> isVisible ( $ container , $ store ) ) { /** @var \Magento\Backend\Model\View\Result\Redirect $redirectResult */ $ redirectResult = $ this -> resultRedirectFactory -> create ( ) ; return $ redirectResult -> setPath ( 'adminhtml/*/' , [ 'container' => $ container , 'store' => $ store ] ) ; } /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $ resultPage = $ this -> resultPageFactory -> create ( ) ; $ resultPage -> setActiveMenu ( 'Smile_ElasticsuiteCore::manage_relevance' ) ; $ resultPage -> getLayout ( ) -> getBlock ( 'menu' ) -> setAdditionalCacheKeyInfo ( [ $ current ] ) ; $ resultPage -> addBreadcrumb ( __ ( 'Search Engine' ) , __ ( 'Relevance' ) ) ; $ resultPage -> getConfig ( ) -> getTitle ( ) -> prepend ( __ ( 'Relevance configuration' ) ) ; return $ resultPage ; }
Edit configuration section

@return \Magento\Framework\App\ResponseInterface|void
Edit configuration section