- *
- * @param int $parent
- * @param int $recursionLevel
- * @param bool $sorted
- * @param bool $asCollection
- * @param bool $toLoad
- * @return \Magento\Framework\Data\Tree\Node\Collection|\Magento\Catalog\Model\ResourceModel\Category\Collection
- */
- public function getCategories($parent, $recursionLevel = 0, $sorted = false, $asCollection = false, $toLoad = true)
- {
- $categories = $this->getResource()->getCategories($parent, $recursionLevel, $sorted, $asCollection, $toLoad);
- return $categories;
- }
-
- /**
- * Return parent categories of current category
- *
- * @return \Magento\Framework\DataObject[]|\Magento\Catalog\Model\Category[]
- */
- public function getParentCategories()
- {