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

Author: Romain Ruaud ([email protected])
Inheritance: extends AbstractConfig
Show file Open project: smile-sa/elasticsuite

Protected Properties

Property Type Description
$cache Magento\Framework\Cache\FrontendInterface
$configFactory Magento\Config\Model\Config\Factory Backend Config Model Factory
$string Magento\Framework\Stdlib\StringUtils

Public Methods

Method Description
__construct ( Magento\Backend\App\Action\Context $context, Magento\Config\Model\Config\Structure $configStructure, Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker, Factory $configFactory, Magento\Framework\Cache\FrontendInterface $cache, Magento\Framework\Stdlib\StringUtils $string ) Class constructor
execute ( ) : Magento\Backend\Model\View\Result\Redirect Save configuration

Protected Methods

Method Description
getGroupsForSave ( ) : array | null
processNestedGroups ( mixed $group ) : array Process nested groups

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, Factory $configFactory, Magento\Framework\Cache\FrontendInterface $cache, Magento\Framework\Stdlib\StringUtils $string )
$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
$configFactory Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Factory Configuration Factory
$cache Magento\Framework\Cache\FrontendInterface Cache instance
$string Magento\Framework\Stdlib\StringUtils String helper

execute() public method

Save configuration
public execute ( ) : Magento\Backend\Model\View\Result\Redirect
return Magento\Backend\Model\View\Result\Redirect

getGroupsForSave() protected method

protected getGroupsForSave ( ) : array | null
return array | null

processNestedGroups() protected method

Process nested groups
protected processNestedGroups ( mixed $group ) : array
$group mixed The configuration groups
return array

Property Details

$cache protected property

protected FrontendInterface,Magento\Framework\Cache $cache
return Magento\Framework\Cache\FrontendInterface

$configFactory protected property

Backend Config Model Factory
protected Factory,Magento\Config\Model\Config $configFactory
return Magento\Config\Model\Config\Factory

$string protected property

protected StringUtils,Magento\Framework\Stdlib $string
return Magento\Framework\Stdlib\StringUtils