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
Model
View
Layout
StructureManager.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Model\View\Layout
;
8
9
use
Magento\Framework\View\Layout\ScheduledStructure
;
10
use
Magento\Framework\View\Layout\Data\Structure
;
11
21
class
StructureManager
22
{
33
public
function
removeElement
(
34
ScheduledStructure
$scheduledStructure,
35
Structure
$structure,
36
$elementName
,
37
$isChild =
false
38
) {
39
$elementsToRemove = array_keys($structure->getChildren(
$elementName
));
40
$scheduledStructure->
unsetElement
(
$elementName
);
41
foreach
($elementsToRemove as
$element
) {
42
$this->
removeElement
($scheduledStructure, $structure,
$element
,
true
);
43
}
44
if
(!$isChild) {
45
$structure->unsetElement(
$elementName
);
46
}
47
return
true
;
48
}
49
}
Magento\Backend\Model\View\Layout\StructureManager\removeElement
removeElement(ScheduledStructure $scheduledStructure, Structure $structure, $elementName, $isChild=false)
Definition:
StructureManager.php:33
Magento\Framework\View\Layout\ScheduledStructure\unsetElement
unsetElement($elementName)
Definition:
ScheduledStructure.php:247
Magento\Backend\Model\View\Layout\StructureManager
Definition:
StructureManager.php:21
Magento\Framework\View\Layout\Data\Structure
Definition:
Structure.php:17
Magento\Framework\View\Layout\ScheduledStructure
Definition:
ScheduledStructure.php:14
Magento\Backend\Model\View\Layout
Definition:
Builder.php:6
Magento\Framework\View\Layout\ScheduledStructure
Definition:
Helper.php:6
$elementName
$elementName
Definition:
gallery.phtml:10
$element
$element
Definition:
element.phtml:12