Skip to content

Commit

Permalink
Revert "getMenuCategoryData change scope to protected."
Browse files Browse the repository at this point in the history
This reverts commit b9fb63e.
  • Loading branch information
JamesAnelay committed Mar 30, 2015
1 parent b9fb63e commit ebc1039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function _addCategoriesToMenu($categories, $parentCategoryNode, $block

$tree = $parentCategoryNode->getTree();

$categoryData = $this->_getMenuCategoryData($category);
$categoryData = $this->getMenuCategoryData($category);

$categoryNode = new \Magento\Framework\Data\Tree\Node($categoryData, 'id', $tree, $parentCategoryNode);
$parentCategoryNode->addChild($categoryNode);
Expand All @@ -158,7 +158,7 @@ protected function _addCategoriesToMenu($categories, $parentCategoryNode, $block
* @param \Magento\Framework\Data\Tree\Node $category
* @return array
*/
protected function _getMenuCategoryData($category)
public function getMenuCategoryData($category)
{

$nodeId = 'category-node-' . $category->getId();
Expand Down

0 comments on commit ebc1039

Please sign in to comment.