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
File
Context.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Asset\File
;
8
9
use
Magento\Framework\View\Asset
;
10
14
class
Context
implements
Asset\ContextInterface
15
{
19
private
$baseUrl;
20
24
private
$baseDir;
25
29
private
$path;
30
36
public
function
__construct
($baseUrl, $baseDirType, $contextPath)
37
{
38
$this->baseUrl = $baseUrl;
39
$this->baseDir = $baseDirType;
40
$this->path = $contextPath;
41
}
42
46
public
function
getPath
()
47
{
48
return
$this->path;
49
}
50
54
public
function
getBaseUrl
()
55
{
56
return
$this->baseUrl;
57
}
58
64
public
function
getBaseDirType
()
65
{
66
return
$this->baseDir;
67
}
68
}
Magento\Framework\View\Asset\File\Context\getPath
getPath()
Definition:
Context.php:46
Magento\Framework\View\Asset\File\Context\__construct
__construct($baseUrl, $baseDirType, $contextPath)
Definition:
Context.php:36
Magento\Framework\View\Asset
Definition:
AssetInterface.php:6
Magento\Framework\View\Asset\File\Context\getBaseUrl
getBaseUrl()
Definition:
Context.php:54
Magento\Framework\View\Asset\File\Context\getBaseDirType
getBaseDirType()
Definition:
Context.php:64
Magento\Framework\View\Asset\File
Definition:
Context.php:7
Magento\Framework\View\Asset\File\Context
Definition:
Context.php:14