PHP Class Smile\ElasticsuiteTracker\Helper\Data

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Framework\App\Helper\AbstractHelper
Afficher le fichier Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Свойство Type Description
$scopeConfig Magento\Framework\App\Config\ScopeConfigInterface Magento Configuration

Méthodes publiques

Méthode Description
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\View\Asset\Repository $assetRepository ) PHP Constructor
getBaseUrl ( ) : string Return the tracking base URL (params are added later)
getCookieConfig ( ) : array Return an array containing the cookie configuration
getStoreId ( ) : integer Retrieve current store Id
isEnabled ( ) : boolean Return the module activation status

Method Details

__construct() public méthode

PHP Constructor
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\View\Asset\Repository $assetRepository )
$context Magento\Framework\App\Helper\Context The current context
$storeManager Magento\Store\Model\StoreManagerInterface The Store Manager
$assetRepository Magento\Framework\View\Asset\Repository The asset repository

getBaseUrl() public méthode

Return the tracking base URL (params are added later)
public getBaseUrl ( ) : string
Résultat string

getCookieConfig() public méthode

Return an array containing the cookie configuration
public getCookieConfig ( ) : array
Résultat array

getStoreId() public méthode

Retrieve current store Id
public getStoreId ( ) : integer
Résultat integer

isEnabled() public méthode

Return the module activation status
public isEnabled ( ) : boolean
Résultat boolean

Property Details

$scopeConfig protected_oe property

Magento Configuration
protected ScopeConfigInterface,Magento\Framework\App\Config $scopeConfig
Résultat Magento\Framework\App\Config\ScopeConfigInterface