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
module-backend
App
DefaultPath.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Backend\App
;
9
14
class
DefaultPath
implements
\Magento\Framework\App\DefaultPathInterface
15
{
19
protected
$_parts
;
20
25
public
function
__construct
(\
Magento
\Backend\
App
\
ConfigInterface
$config
)
26
{
27
$pathParts = explode(
'/'
,
$config
->getValue(
'web/default/admin'
));
28
29
$this->_parts = [
30
'area'
=> isset($pathParts[0]) ? $pathParts[0] :
''
,
31
'module'
=> isset($pathParts[1]) ? $pathParts[1] :
'admin'
,
32
'controller'
=> isset($pathParts[2]) ? $pathParts[2] :
'index'
,
33
'action'
=> isset($pathParts[3]) ? $pathParts[3] :
'index'
,
34
];
35
}
36
43
public
function
getPart
(
$code
)
44
{
45
return
$this->_parts[
$code
] ??
null
;
46
}
47
}
Magento\Framework\App
Magento\Backend\App\DefaultPath
Definition:
DefaultPath.php:14
Magento\Backend\App\ConfigInterface
Definition:
ConfigInterface.php:15
$config
$config
Definition:
fraud_order.php:17
Magento\Backend\App\DefaultPath\getPart
getPart($code)
Definition:
DefaultPath.php:43
Magento
Magento\Backend\App\DefaultPath\$_parts
$_parts
Definition:
DefaultPath.php:19
Magento\Backend\App\DefaultPath\__construct
__construct(\Magento\Backend\App\ConfigInterface $config)
Definition:
DefaultPath.php:25
$code
$code
Definition:
info.phtml:12
Magento\Framework\App\DefaultPathInterface
Definition:
DefaultPathInterface.php:14
Magento\Backend\App
Definition:
AbstractActionTest.php:6