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
ModuleNotation.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\Url\CssResolver
;
11
21
class
ModuleNotation
implements
Asset\PreProcessorInterface
22
{
26
private
$cssResolver;
27
31
private
$notationResolver;
32
37
public
function
__construct
(
38
CssResolver
$cssResolver,
39
\
Magento
\Framework\View\
Asset
\NotationResolver\
Module
$notationResolver
40
) {
41
$this->cssResolver = $cssResolver;
42
$this->notationResolver = $notationResolver;
43
}
44
48
public
function
process
(
Chain
$chain)
49
{
50
$asset = $chain->
getAsset
();
51
$callback =
function
(
$path
) use ($asset) {
52
return
$this->notationResolver->convertModuleNotationToPath($asset,
$path
);
53
};
54
$chain->
setContent
($this->cssResolver->replaceRelativeUrls($chain->
getContent
(), $callback));
55
}
56
}
Magento\Framework\View\Asset\NotationResolver\Module
Definition:
Module.php:15
Magento\Framework\View\Asset\PreProcessor\ModuleNotation\process
process(Chain $chain)
Definition:
ModuleNotation.php:48
Magento\Framework\View\Asset\PreProcessor\Chain\setContent
setContent($content)
Definition:
Chain.php:126
Magento\Framework\View\Asset\PreProcessor\ModuleNotation\__construct
__construct(CssResolver $cssResolver, \Magento\Framework\View\Asset\NotationResolver\Module $notationResolver)
Definition:
ModuleNotation.php:37
Magento\Framework\View\Asset\PreProcessor
Magento\Framework\View\Url\CssResolver
Definition:
CssResolver.php:16
Magento\Framework\View\Asset
Definition:
Asset.php:10
Magento
Magento\Framework\View\Asset
Definition:
AssetInterface.php:6
Magento\Framework\View\Asset\PreProcessor\Chain\getAsset
getAsset()
Definition:
Chain.php:95
Magento\Framework\View\Asset\PreProcessor\Chain\getContent
getContent()
Definition:
Chain.php:115
Magento\Framework\View\Asset\PreProcessor\ModuleNotation
Definition:
ModuleNotation.php:21
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Framework\View\Asset\PreProcessor\Chain
Definition:
Chain.php:18