diff --git a/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php b/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php index 95311e008f587..2d779eb0fb10f 100644 --- a/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php +++ b/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php @@ -63,10 +63,11 @@ public function interpret( /** @var \Magento\Framework\View\Layout\Element $element */ foreach ($bodyElement as $element) { if ($element->getName() === self::BODY_ATTRIBUTE) { - $this->setBodyAttributeTosStructure($readerContext, $element); + $this->setBodyAttributeToStructure($readerContext, $element); } } - return $this->readerPool->interpret($readerContext, $bodyElement); + $this->readerPool->interpret($readerContext, $bodyElement); + return $this; } /** @@ -76,7 +77,7 @@ public function interpret( * @param Layout\Element $element * @return $this */ - protected function setBodyAttributeTosStructure(Layout\Reader\Context $readerContext, Layout\Element $element) + protected function setBodyAttributeToStructure(Layout\Reader\Context $readerContext, Layout\Element $element) { if ($element->getAttribute('name') == PageConfig::BODY_ATTRIBUTE_CLASS) { $readerContext->getPageConfigStructure()->setBodyClass($element->getAttribute('value'));