Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Attributes
Data Class Reference
Inheritance diagram for Data:
AbstractHelper

Public Member Functions

 __construct (\Magento\Framework\Session\Config $config)
 
 getUrl ($route, array $params=[])
 
 getDomain ()
 
- Public Member Functions inherited from AbstractHelper
 __construct (Context $context)
 
 isModuleOutputEnabled ($moduleName=null)
 

Data Fields

const PRIVATE_MAX_AGE_CACHE = 31536000
 

Protected Attributes

 $config
 
- Protected Attributes inherited from AbstractHelper
 $_moduleName
 
 $_request
 
 $_moduleManager
 
 $_logger
 
 $_urlBuilder
 
 $_httpHeader
 
 $_eventManager
 
 $_remoteAddress
 
 $urlEncoder
 
 $urlDecoder
 
 $scopeConfig
 
 $_cacheConfig
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHelper
 _getRequest ()
 
 _getModuleName ()
 
 _getUrl ($route, $params=[])
 

Detailed Description

Helper for Page Cache module

Definition at line 16 of file Data.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\Session\Config  $config)
Parameters
\Magento\Framework\Session\Config$config

Definition at line 31 of file Data.php.

32  {
34  }

Member Function Documentation

◆ getDomain()

getDomain ( )
Returns
string

Definition at line 51 of file Data.php.

52  {
53  return $this->config->getValidDomain();
54  }

◆ getUrl()

getUrl (   $route,
array  $params = [] 
)

Retrieve url

Parameters
string$route
array$params
Returns
string

Definition at line 43 of file Data.php.

44  {
45  return $this->_getUrl($route, $params);
46  }
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18

Field Documentation

◆ $config

$config
protected

Definition at line 26 of file Data.php.

◆ PRIVATE_MAX_AGE_CACHE

const PRIVATE_MAX_AGE_CACHE = 31536000

Private caching time one year

Definition at line 21 of file Data.php.


The documentation for this class was generated from the following file: