PHP Class Elcodi\Plugin\CustomShippingBundle\Controller\CarrierController

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

Public Methods

Method Description
deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse Delete entity
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier, boolean $isValid ) : RedirectResponse Edit and Saves category
listAction ( ) : array List elements of certain entity type.

Method Details

deleteAction() public method

Delete entity
public deleteAction ( Request $request, mixed $entity, string $redirectPath = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$entity mixed Entity to delete
$redirectPath string Redirect path
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response

editAction() public method

Edit and Saves category
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier, boolean $isValid ) : RedirectResponse
$form Symfony\Component\Form\FormInterface Form
$carrier Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Carrier
$isValid boolean Is valid
return Symfony\Component\HttpFoundation\RedirectResponse Redirect response

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( ) : array
return array Result