PHP Class Smile\ElasticsuiteTracker\Helper\Data

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

Protected Properties

Property Type Description
$scopeConfig Magento\Framework\App\Config\ScopeConfigInterface Magento Configuration

Public Methods

Method 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 method

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 method

Return the tracking base URL (params are added later)
public getBaseUrl ( ) : string
return string

getCookieConfig() public method

Return an array containing the cookie configuration
public getCookieConfig ( ) : array
return array

getStoreId() public method

Retrieve current store Id
public getStoreId ( ) : integer
return integer

isEnabled() public method

Return the module activation status
public isEnabled ( ) : boolean
return boolean

Property Details

$scopeConfig protected property

Magento Configuration
protected ScopeConfigInterface,Magento\Framework\App\Config $scopeConfig
return Magento\Framework\App\Config\ScopeConfigInterface