PHP Class Elcodi\Admin\ProductBundle\Controller\Component\CategoryComponentController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Show file Open project: elcodi/bamboo

Public Methods

Method Description
editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\CategoryInterface $category ) : array New element component action
listComponentAction ( ) : array Component for entity list.
sortComponentAction ( Request $request ) : array Sorts the categories with the given orders.

Method Details

editComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\CategoryInterface $category ) : array
$formView Symfony\Component\Form\FormView Form view
$category Elcodi\Component\Product\Entity\Interfaces\CategoryInterface Category
return array Result

listComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( ) : array
return array Result

sortComponentAction() public method

Sorts the categories with the given orders.
public sortComponentAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request The user request.
return array Result