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 95311e008f5875e21fbbc4961ca47895c2e11c50..2d779eb0fb10f110b03800631c25e051bbfda02d 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 @@ class Body implements Layout\ReaderInterface /** @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 @@ class Body implements Layout\ReaderInterface * @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'));