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
AbstractComposite.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Structure\Element
;
7
12
abstract
class
AbstractComposite
extends
\Magento\Config\Model\Config\Structure\AbstractElement
13
{
19
protected
$_childrenIterator
;
20
26
public
function
__construct
(
27
\
Magento
\Store\Model\
StoreManagerInterface
$storeManager
,
28
\
Magento
\Framework\Module\Manager
$moduleManager
,
29
Iterator
$childrenIterator
30
) {
31
parent::__construct(
$storeManager
,
$moduleManager
);
32
$this->_childrenIterator = $childrenIterator;
33
}
34
42
public
function
setData
(array
$data
, $scope)
43
{
44
parent::setData(
$data
, $scope);
45
$children
= array_key_exists(
46
'children'
,
47
$this->_data
48
) && is_array(
49
$this->_data[
'children'
]
50
) ? $this->_data[
'children'
] : [];
51
$this->_childrenIterator->setElements(
$children
, $scope);
52
}
53
59
public
function
hasChildren
()
60
{
61
foreach
($this->
getChildren
() as $child) {
62
return
(
bool
)$child;
63
}
64
return
false
;
65
}
66
72
public
function
getChildren
()
73
{
74
return
$this->_childrenIterator
;
75
}
76
82
public
function
isVisible
()
83
{
84
if
(parent::isVisible()) {
85
return
$this->
hasChildren
() || $this->
getFrontendModel
();
86
}
87
return
false
;
88
}
89
}
Magento\Config\Model\Config\Structure\Element\AbstractComposite\__construct
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Module\Manager $moduleManager, Iterator $childrenIterator)
Definition:
AbstractComposite.php:26
Magento\Config\Model\Config\Structure\Element
Definition:
AbstractComposite.php:6
Magento\Config\Model\Config\Structure\Element\AbstractComposite\hasChildren
hasChildren()
Definition:
AbstractComposite.php:59
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\AbstractComposite\isVisible
isVisible()
Definition:
AbstractComposite.php:82
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Config\Model\Config\Structure\Element\Iterator
Definition:
Iterator.php:12
Magento\Config\Model\Config\Structure\Element\AbstractComposite\$_childrenIterator
$_childrenIterator
Definition:
AbstractComposite.php:19
Magento
Magento\Config\Model\Config\Structure\Element\AbstractComposite\getChildren
getChildren()
Definition:
AbstractComposite.php:72
$children
$children
Definition:
actions.phtml:11
Magento\Config\Model\Config\Structure\Element\AbstractComposite
Definition:
AbstractComposite.php:12
Magento\Config\Model\Config\Structure\AbstractElement\getFrontendModel
getFrontendModel()
Definition:
AbstractElement.php:132
Magento\Config\Model\Config\Structure\Element\AbstractComposite\setData
setData(array $data, $scope)
Definition:
AbstractComposite.php:42