public function listAction() {
        $entities = $this->container->get("haven_web.faq.read_handler")->getAll();


        foreach ($entities as $entity) {
            $delete_forms[$entity->getId()] = $this->container->get("haven_web.faq.form_handler")->createDeleteForm($entity->getId())->createView();
            $rank_forms[$entity->getId()] = $this->container->get("haven_web.faq.form_handler")->createRankForm($entity->getId(), $entity->getRank())->createView();
        }

        return array("entities" => $entities
            , 'delete_forms' => isset($delete_forms) && is_array($delete_forms) ? $delete_forms : array()
            , 'rank_forms' => isset($rank_forms) && is_array($rank_forms) ? $rank_forms : array()
        );
    }
public function listAction() {
        $entities = $this->container->get("haven_web.faq.read_handler")->getAll();


        foreach ($entities as $entity) {
            $delete_forms[$entity->getId()] = $this->container->get("haven_web.faq.form_handler")->createDeleteForm($entity->getId())->createView();
            $rank_forms[$entity->getId()] = $this->container->get("haven_web.faq.form_handler")->createRankForm($entity->getId(), $entity->getRank())->createView();
        }

        return array("entities" => $entities
            , 'delete_forms' => isset($delete_forms) && is_array($delete_forms) ? $delete_forms : array()
            , 'rank_forms' => isset($rank_forms) && is_array($rank_forms) ? $rank_forms : array()
        );
    }
public function listAction ( ) { $ entities = $ this -> container -> get ( "haven_web.faq.read_handler" ) -> getAll ( ) ; foreach ( $ entities as $ entity ) { $ delete_forms [ $ entity -> getId ( ) ] = $ this -> container -> get ( "haven_web.faq.form_handler" ) -> createDeleteForm ( $ entity -> getId ( ) ) -> createView ( ) ; $ rank_forms [ $ entity -> getId ( ) ] = $ this -> container -> get ( "haven_web.faq.form_handler" ) -> createRankForm ( $ entity -> getId ( ) , $ entity -> getRank ( ) ) -> createView ( ) ; } return array ( "entities" => $ entities , 'delete_forms' => isset ( $ delete_forms ) && is_array ( $ delete_forms ) ? $ delete_forms : array ( ) , 'rank_forms' => isset ( $ rank_forms ) && is_array ( $ rank_forms ) ? $ rank_forms : array ( ) ) ; }
Finds and displays all faqs for admin.

@Route("/admin/list/faq")
@Method("GET")
@Template()
Finds and displays all faqs for admin .