PHP Class Smile\ElasticsuiteCore\Controller\Adminhtml\Search\Request\RelevanceConfig\AbstractConfig

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Backend\App\AbstractAction
Mostra file Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Property Type Description
$configStructure Magento\Config\Model\Config\Structure
$sectionChecker Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker

Public Methods

Method Description
__construct ( Magento\Backend\App\Action\Context $context, Magento\Config\Model\Config\Structure $configStructure, Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker ) Class constructor
dispatch ( Magento\Framework\App\RequestInterface $request ) : Magento\Framework\App\ResponseInterface Check if current section is found and is allowed

Protected Methods

Method Description
_isAllowed ( ) : boolean Check is allow modify system configuration

Method Details

__construct() public method

Class constructor
public __construct ( Magento\Backend\App\Action\Context $context, Magento\Config\Model\Config\Structure $configStructure, Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker )
$context Magento\Backend\App\Action\Context Action context
$configStructure Magento\Config\Model\Config\Structure Relevance configuration Structure
$sectionChecker Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker Configuration Section Checker

_isAllowed() protected method

Check is allow modify system configuration
protected _isAllowed ( ) : boolean
return boolean

dispatch() public method

Check if current section is found and is allowed
public dispatch ( Magento\Framework\App\RequestInterface $request ) : Magento\Framework\App\ResponseInterface
$request Magento\Framework\App\RequestInterface The current request
return Magento\Framework\App\ResponseInterface

Property Details

$configStructure protected_oe property

protected Structure,Magento\Config\Model\Config $configStructure
return Magento\Config\Model\Config\Structure

$sectionChecker protected_oe property

protected ConfigSectionChecker,Magento\Config\Controller\Adminhtml\System $sectionChecker
return Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker