Skip to content

Commit

Permalink
getMenuCategoryData change scope to protected.
Browse files Browse the repository at this point in the history
I thought plugins had to be on public methods, turns out this is not the case so have set the method to protected.
  • Loading branch information
JamesAnelay committed Mar 28, 2015
1 parent a03c9ad commit b9fb63e
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
*/
public function getMenuCategoryData($category)
protected function _getMenuCategoryData($category)
{

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

0 comments on commit b9fb63e

Please sign in to comment.