diff --git a/Block/Navigation.php b/Block/Navigation.php index d1ef0e0..001096c 100644 --- a/Block/Navigation.php +++ b/Block/Navigation.php @@ -102,7 +102,7 @@ public function getCacheKeyInfo() $this->httpContext->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH) ]; } - + public function getMobileNavigationEndpointUrl() { return $this->getUrl('navigation/mobile/index'); diff --git a/Service/Navigation/Builder.php b/Service/Navigation/Builder.php index b8012c9..81548c1 100644 --- a/Service/Navigation/Builder.php +++ b/Service/Navigation/Builder.php @@ -85,7 +85,7 @@ protected function getChildrenCategories($category) return $categories; } - protected function isVisible($category, $navigationType = self::TYPE_DESKTOP) + public function isVisible($category, $navigationType = self::TYPE_DESKTOP) { if ($navigationType == self::TYPE_MOBILE) { return $category->getIncludeInMobileNavigation();