Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\View\Url\ConfigInterface $config, \Magento\Framework\App\View\Deployment\Version $deploymentVersion) | |
afterGetBaseUrl (\Magento\Framework\Url\ScopeInterface $subject, $baseUrl, $type=\Magento\Framework\UrlInterface::URL_TYPE_LINK, $secure=null) | |
Data Fields | |
const | XML_PATH_STATIC_FILE_SIGNATURE = 'dev/static/sign' |
const | SIGNATURE_TEMPLATE = 'version%s' |
Protected Member Functions | |
isUrlSignatureEnabled () | |
renderUrlSignature () | |
Plugin that activates signing of static file URLs with corresponding deployment version
Definition at line 12 of file Signature.php.
__construct | ( | \Magento\Framework\View\Url\ConfigInterface | $config, |
\Magento\Framework\App\View\Deployment\Version | $deploymentVersion | ||
) |
\Magento\Framework\View\Url\ConfigInterface | $config | |
\Magento\Framework\App\View\Deployment\Version | $deploymentVersion |
Definition at line 38 of file Signature.php.
afterGetBaseUrl | ( | \Magento\Framework\Url\ScopeInterface | $subject, |
$baseUrl, | |||
$type = \Magento\Framework\UrlInterface::URL_TYPE_LINK , |
|||
$secure = null |
|||
) |
Append signature to rendered base URL for static view files
\Magento\Framework\Url\ScopeInterface | $subject | |
string | $baseUrl | |
string | $type | |
null | $secure |
@SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 58 of file Signature.php.
|
protected |
|
protected |
const SIGNATURE_TEMPLATE = 'version%s' |
Template of signature component of URL, parametrized with the deployment version of static files
Definition at line 22 of file Signature.php.
const XML_PATH_STATIC_FILE_SIGNATURE = 'dev/static/sign' |
XPath for configuration setting of signing static files
Definition at line 17 of file Signature.php.