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-config
Controller
Adminhtml
System
ConfigSectionChecker.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Config\Controller\Adminhtml\System
;
8
9
use
Magento\Framework\Exception\NotFoundException
;
10
15
class
ConfigSectionChecker
16
{
20
protected
$_configStructure
;
21
25
public
function
__construct
(\
Magento
\Config\Model\Config\Structure $configStructure)
26
{
27
$this->_configStructure = $configStructure;
28
}
29
40
public
function
isSectionAllowed
($sectionId)
41
{
42
try
{
43
if
(
false
== $this->_configStructure->getElement($sectionId)->isAllowed()) {
44
throw
new \Exception(
''
);
45
}
46
return
true
;
47
}
catch
(\
Zend_Acl_Exception
$e) {
48
throw
new
NotFoundException
(
__
(
'Page not found.'
));
49
}
catch
(\Exception $e) {
50
return
false
;
51
}
52
}
53
}
Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker\$_configStructure
$_configStructure
Definition:
ConfigSectionChecker.php:20
Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker\__construct
__construct(\Magento\Config\Model\Config\Structure $configStructure)
Definition:
ConfigSectionChecker.php:25
__
__()
Definition:
__.php:13
Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker
Definition:
ConfigSectionChecker.php:15
Magento\Framework\Exception\NotFoundException
Definition:
NotFoundException.php:12
Magento
Zend_Acl_Exception
Definition:
Exception.php:35
Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker\isSectionAllowed
isSectionAllowed($sectionId)
Definition:
ConfigSectionChecker.php:40
Magento\Config\Controller\Adminhtml\System
Definition:
ConfigTest.php:7