Elcodi\Admin\BannerBundle\Controller\BannerZoneController::saveAction PHP Метод

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

Should be POST
public saveAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerZoneInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerZoneInterface Entity to save
$form Symfony\Component\Form\FormInterface Form view
$isValid boolean Request handle is valid
Результат Symfony\Component\HttpFoundation\RedirectResponse Redirect response
    public function saveAction(BannerZoneInterface $entity, FormInterface $form, $isValid)
    {
        if ($isValid) {
            $this->get('elcodi.object_manager.banner_zone')->flush($entity);
        }
        return $this->redirectRoute("admin_banner_zone_view", ['id' => $entity->getId()]);
    }