protected function batchAction(): RedirectResponse
    {
        $batchForm = $this->createBatchForm($this->entity['name']);
        $batchForm->handleRequest($this->request);

        if ($batchForm->isSubmitted() && $batchForm->isValid()) {
            $actionName = $batchForm->get('name')->getData();
            $actionIds = $batchForm->get('ids')->getData();

            $this->executeDynamicMethod($actionName.'<EntityName>BatchAction', [$actionIds, $batchForm]);
        }

        return $this->redirectToReferrer();
    }
protected function batchAction(): RedirectResponse
    {
        $batchForm = $this->createBatchForm($this->entity['name']);
        $batchForm->handleRequest($this->request);

        if ($batchForm->isSubmitted() && $batchForm->isValid()) {
            $actionName = $batchForm->get('name')->getData();
            $actionIds = $batchForm->get('ids')->getData();

            $this->executeDynamicMethod($actionName.'<EntityName>BatchAction', [$actionIds, $batchForm]);
        }

        return $this->redirectToReferrer();
    }
protected function batchAction ( ) : RedirectResponse { $ batchForm = $ this -> createBatchForm ( $ this -> entity [ 'name' ] ) ; $ batchForm -> handleRequest ( $ this -> request ) ; if ( $ batchForm -> isSubmitted ( ) && $ batchForm -> isValid ( ) ) { $ actionName = $ batchForm -> get ( 'name' ) -> getData ( ) ; $ actionIds = $ batchForm -> get ( 'ids' ) -> getData ( ) ; $ this -> executeDynamicMethod ( $ actionName . '<EntityName>BatchAction' , [ $ actionIds , $ batchForm ] ) ; } return $ this -> redirectToReferrer ( ) ; }
The method that is executed when the user performs a 'batch' action to any entity.
The method that is executed when the user performs a batch action to any entity .