PHP Class Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Structure\Element\Visibility

Author: Romain Ruaud ([email protected])
ファイルを表示 Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
__construct ( Magento\Framework\Module\Manager $moduleManager, Magento\Store\Model\StoreManagerInterface $storeManager ) Visibility constructor.
isVisible ( Magento\Config\Model\Config\Structure\AbstractElement $element, string $scope ) : boolean Check a configuration element visibility

Method Details

__construct() public method

Visibility constructor.
public __construct ( Magento\Framework\Module\Manager $moduleManager, Magento\Store\Model\StoreManagerInterface $storeManager )
$moduleManager Magento\Framework\Module\Manager The module Manager
$storeManager Magento\Store\Model\StoreManagerInterface The store manager

isVisible() public method

Check a configuration element visibility
public isVisible ( Magento\Config\Model\Config\Structure\AbstractElement $element, string $scope ) : boolean
$element Magento\Config\Model\Config\Structure\AbstractElement The config composite element
$scope string The element scope
return boolean