Elcodi\Admin\ProductBundle\Controller\Component\CategoryComponentController::listComponentAction PHP Метод

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

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( ) : array
Результат array Result
    public function listComponentAction()
    {
        $category_manager = $this->get('elcodi.provider.category_tree');
        $category_tree = $category_manager->buildCategoryTree();
        return ['paginator' => $category_tree];
    }