Helper
Category
Magento\Catalog\Helper\Category
What it does
This helper class provides utility methods for working with Magento 2 categories.
Developers use it to retrieve store categories, generate category URLs, check if categories can be displayed, and handle canonical URLs for SEO purposes.
It's commonly used in templates and blocks when you need to display category navigation menus or validate category visibility.
Public Methods
- getStoreCategories()
- getCategoryUrl()
- canShow()
- canUseCanonicalTag()
- _resetState()
- getCanonicalUrl()