PHP Class Elcodi\Plugin\CustomShippingBundle\Controller\CarrierController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode 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 méthode

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
Résultat Symfony\Component\HttpFoundation\RedirectResponse Redirect response

editAction() public méthode

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
Résultat Symfony\Component\HttpFoundation\RedirectResponse Redirect response

listAction() public méthode

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