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
Model
Config
Structure
Element
Section.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Structure\Element
;
7
12
class
Section
extends
AbstractComposite
13
{
19
protected
$_authorization
;
20
27
public
function
__construct
(
28
\
Magento
\Store\Model\
StoreManagerInterface
$storeManager
,
29
\
Magento
\Framework\Module\Manager
$moduleManager
,
30
Iterator
$childrenIterator,
31
\
Magento
\Framework\AuthorizationInterface $authorization
32
) {
33
parent::__construct(
$storeManager
,
$moduleManager
, $childrenIterator);
34
$this->_authorization = $authorization;
35
}
36
42
public
function
getHeaderCss
()
43
{
44
return
isset($this->_data[
'header_css'
]) ? $this->_data[
'header_css'
] :
''
;
45
}
46
52
public
function
isAllowed
()
53
{
54
return
isset($this->_data[
'resource'
]) ? $this->_authorization->isAllowed($this->_data[
'resource'
]) :
false
;
55
}
56
62
public
function
isVisible
()
63
{
64
if
(!$this->
isAllowed
()) {
65
return
false
;
66
}
67
return
parent::isVisible();
68
}
69
}
Magento\Config\Model\Config\Structure\Element
Definition:
AbstractComposite.php:6
Magento\Config\Model\Config\Structure\AbstractElement\$moduleManager
$moduleManager
Definition:
AbstractElement.php:43
$storeManager
$storeManager
Definition:
paypal_quote.php:14
Magento\Config\Model\Config\Structure\Element\Section\$_authorization
$_authorization
Definition:
Section.php:19
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
Magento\Config\Model\Config\Structure\Element\Iterator
Definition:
Iterator.php:12
Magento
Magento\Config\Model\Config\Structure\Element\Section
Definition:
Section.php:12
Magento\Config\Model\Config\Structure\Element\Section\getHeaderCss
getHeaderCss()
Definition:
Section.php:42
Magento\Config\Model\Config\Structure\Element\AbstractComposite
Definition:
AbstractComposite.php:12
Magento\Config\Model\Config\Structure\Element\Section\isAllowed
isAllowed()
Definition:
Section.php:52
Magento\Config\Model\Config\Structure\Element\Section\isVisible
isVisible()
Definition:
Section.php:62
Magento\Config\Model\Config\Structure\Element\Section\__construct
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Module\Manager $moduleManager, Iterator $childrenIterator, \Magento\Framework\AuthorizationInterface $authorization)
Definition:
Section.php:27