17 private $expirableSectionNames;
27 array $expirableSectionNames = []
29 parent::__construct($context,
$data);
30 $this->expirableSectionNames = $expirableSectionNames;
39 return $this->_scopeConfig->getValue(
40 \
Magento\Framework\Session\Config::XML_PATH_COOKIE_LIFETIME,
41 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
53 return $this->
getUrl($route, [
'_secure' => $this->
getRequest()->isSecure()]);
66 return (
int)$this->_scopeConfig->getValue(
'customer/online_customers/section_data_lifetime');
77 return array_values($this->expirableSectionNames);
getUrl($route='', $params=[])
getCustomerDataUrl($route)
getExpirableSectionNames()
getExpirableSectionLifetime()
__construct(\Magento\Framework\View\Element\Template\Context $context, array $data=[], array $expirableSectionNames=[])