src/Kunstmaan/FormBundle/Entity/AbstractFormPage.php
public function generateThankYouUrl(RouterInterface $router, RenderContext $context)
    {
        /* @var $nodeTranslation NodeTranslation */
        $nodeTranslation = $context['nodetranslation'];

        return $router->generate('_slug', array(
            'url' => $context['slug'],
            '_locale' => $nodeTranslation->getLang(),
            'thanks' => true,
        ));
    }
public function generateThankYouUrl(RouterInterface $router, RenderContext $context)
    {
        /* @var $nodeTranslation NodeTranslation */
        $nodeTranslation = $context['nodetranslation'];

        return $router->generate('_slug', array(
            'url' => $context['slug'],
            '_locale' => $nodeTranslation->getLang(),
            'thanks' => true,
        ));
    }
public function generateThankYouUrl ( RouterInterface $ router , RenderContext $ context ) { /* @var $nodeTranslation NodeTranslation */ $ nodeTranslation = $ context [ 'nodetranslation' ] ; return $ router -> generate ( '_slug' , array ( 'url' => $ context [ 'slug' ] , '_locale' => $ nodeTranslation -> getLang ( ) , 'thanks' => true , ) ) ; }
Generate the url of the thank you page

@param RouterInterface $router  The router
@param RenderContext   $context The render context

@return string
Generate the url of the thank you page