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
App
DefaultPath
DefaultPath.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\DefaultPath
;
9
10
class
DefaultPath
implements
\Magento\Framework\App\DefaultPathInterface
11
{
17
protected
$_parts
;
18
22
public
function
__construct
(array $parts)
23
{
24
$this->_parts = $parts;
25
}
26
33
public
function
getPart
(
$code
)
34
{
35
return
$this->_parts[
$code
] ??
null
;
36
}
37
}
Magento\Framework\App\DefaultPath\DefaultPath
Definition:
DefaultPath.php:10
Magento\Framework\App\DefaultPath\DefaultPath\getPart
getPart($code)
Definition:
DefaultPath.php:33
Magento\Framework\App\DefaultPath
Definition:
DefaultPath.php:8
Magento\Framework\App\DefaultPath\DefaultPath\$_parts
$_parts
Definition:
DefaultPath.php:17
Magento\Framework\App\DefaultPath\DefaultPath\__construct
__construct(array $parts)
Definition:
DefaultPath.php:22
$code
$code
Definition:
info.phtml:12
Magento\Framework\App\DefaultPathInterface
Definition:
DefaultPathInterface.php:14