Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
View
Asset
PreProcessor
VariableNotation.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Asset\PreProcessor
;
8
9
use
Magento\Framework\View\Asset
;
10
use
Magento\Framework\View\Asset\NotationResolver
;
11
use
Magento\Framework\View\Url\CssResolver
;
12
18
class
VariableNotation
implements
Asset\PreProcessorInterface
19
{
23
private
$cssResolver;
24
28
private
$notationResolver;
29
36
public
function
__construct
(
37
CssResolver
$cssResolver,
38
NotationResolver\
Variable
$notationResolver
39
) {
40
$this->cssResolver = $cssResolver;
41
$this->notationResolver = $notationResolver;
42
}
43
47
public
function
process
(
Chain
$chain)
48
{
49
$callback =
function
(
$path
) {
50
return
$this->notationResolver->convertVariableNotation(
$path
);
51
};
52
$chain->
setContent
($this->cssResolver->replaceRelativeUrls($chain->
getContent
(), $callback));
53
}
54
}
Magento\Framework\View\Asset\PreProcessor\VariableNotation\__construct
__construct(CssResolver $cssResolver, NotationResolver\Variable $notationResolver)
Definition:
VariableNotation.php:36
Magento\Framework\View\Asset\PreProcessor\Chain\setContent
setContent($content)
Definition:
Chain.php:126
Magento\Framework\View\Asset\PreProcessor
Magento\Framework\View\Url\CssResolver
Definition:
CssResolver.php:16
Magento\Framework\View\Asset\NotationResolver
Definition:
Module.php:7
Magento\Framework\View\Asset
Definition:
AssetInterface.php:6
Magento\Framework\View\Asset\PreProcessor\Chain\getContent
getContent()
Definition:
Chain.php:115
Magento\Framework\View\Asset\PreProcessor\VariableNotation
Definition:
VariableNotation.php:18
Magento\Framework\View\Asset\PreProcessor\VariableNotation\process
process(Chain $chain)
Definition:
VariableNotation.php:47
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Framework\View\Asset\PreProcessor\Chain
Definition:
Chain.php:18
Magento\Framework\View\Asset\NotationResolver\Variable
Definition:
Variable.php:14