getCategoryTree() публичный Метод

Gets the category tree.
public getCategoryTree ( ) : Sonata\ClassificationBundle\Model\CategoryInterface[]
Результат Sonata\ClassificationBundle\Model\CategoryInterface[]
Пример #1
0
 /**
  * @param \Knp\Menu\ItemInterface $menu        The item to fill with $routes
  * @param array                   $options     The item options
  * @param string                  $currentUri  The current URI
  */
 public function buildCategoryMenu(ItemInterface $menu, array $options = array(), $currentUri = null)
 {
     $categories = $this->categoryManager->getCategoryTree();
     $this->fillMenu($menu, $categories, $options, $currentUri);
 }