Skip to content

Commit

Permalink
Merge pull request #903 from Vinai/view-page-config-reader-body
Browse files Browse the repository at this point in the history
Small cleanup refactoring (MAGETWO-32404)
  • Loading branch information
vpelipenko committed Jan 8, 2015
2 parents c913c94 + 517cd18 commit 7593a65
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -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'));
Expand Down

0 comments on commit 7593a65

Please sign in to comment.