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
framework
View
Page
Config
Generator
Body.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Page\Config\Generator
;
7
8
use
Magento\Framework\View\Layout
;
9
use
Magento\Framework\View\Page\Config\Structure
;
10
11
class
Body
implements
Layout\GeneratorInterface
12
{
16
const
TYPE
=
'body'
;
17
21
private
$pageConfig;
22
28
public
function
__construct
(\
Magento
\Framework\
View
\Page\
Config
$pageConfig)
29
{
30
$this->pageConfig = $pageConfig;
31
}
32
38
public
function
getType
()
39
{
40
return
self::TYPE
;
41
}
42
50
public
function
process
(
Layout
\Reader\
Context
$readerContext,
Layout
\Generator\
Context
$generatorContext)
51
{
52
$structure = $readerContext->getPageConfigStructure();
53
$this->
processBodyClasses
($structure);
54
return
$this;
55
}
56
63
protected
function
processBodyClasses
(
Structure
$pageStructure)
64
{
65
foreach
($pageStructure->
getBodyClasses
() as
$class
) {
66
$this->pageConfig->addBodyClass(
$class
);
67
}
68
return
$this;
69
}
70
}
Magento\Framework\View\Layout
Definition:
AclCondition.php:6
Magento\Framework\View\Page\Config\Generator
Definition:
Body.php:6
Magento\Framework\View\Layout
Definition:
Layout.php:28
$class
$_option $_optionId $class
Definition:
date.phtml:13
Magento\Framework\View\Page\Config\Generator\Body\TYPE
const TYPE
Definition:
Body.php:16
Magento\Framework\View\Page\Config\Generator\Body\__construct
__construct(\Magento\Framework\View\Page\Config $pageConfig)
Definition:
Body.php:28
Magento\Framework\View\Page\Config\Generator\Body\process
process(Layout\Reader\Context $readerContext, Layout\Generator\Context $generatorContext)
Definition:
Body.php:50
Magento
Magento\Framework\View\Context
Definition:
Context.php:32
Magento\Framework\App\Config
Definition:
Config.php:17
Magento\Framework\App\View
Definition:
View.php:8
Magento\Framework\View\Page\Config\Generator\Body
Definition:
Body.php:11
Magento\Framework\View\Page\Config\Generator\Body\processBodyClasses
processBodyClasses(Structure $pageStructure)
Definition:
Body.php:63
Magento\Framework\View\Page\Config\Structure\getBodyClasses
getBodyClasses()
Definition:
Structure.php:127
Magento\Framework\View\Page\Config\Generator\Body\getType
getType()
Definition:
Body.php:38
Magento\Framework\View\Page\Config\Structure
Definition:
Structure.php:15