Bundle/SitemapBundle/Controller/SitemapController.php
protected function createSitemapPriorityType(BasePage $page, PageSeo $pageSeo)
    {
        $form = $this->createForm(SitemapPriorityPageSeoType::class, $pageSeo, [
                'action' => $this->generateUrl('victoire_sitemap_changePriority', [
                        'id' => $page->getId(),
                    ]
                ),
                'method' => 'PUT',
                'attr'   => [
                    'class'       => 'sitemapPriorityForm form-inline',
                    'data-pageId' => $page->getId(),
                    'id'          => 'sitemap-priority-type-'.$page->getId(),
                    'style'       => 'display: inline;',
                ],
            ]
        );

        return $form;
    }
protected function createSitemapPriorityType(BasePage $page, PageSeo $pageSeo)
    {
        $form = $this->createForm(SitemapPriorityPageSeoType::class, $pageSeo, [
                'action' => $this->generateUrl('victoire_sitemap_changePriority', [
                        'id' => $page->getId(),
                    ]
                ),
                'method' => 'PUT',
                'attr'   => [
                    'class'       => 'sitemapPriorityForm form-inline',
                    'data-pageId' => $page->getId(),
                    'id'          => 'sitemap-priority-type-'.$page->getId(),
                    'style'       => 'display: inline;',
                ],
            ]
        );

        return $form;
    }
protected function createSitemapPriorityType ( BasePage $ page , PageSeo $ pageSeo ) { $ form = $ this -> createForm ( SitemapPriorityPageSeoType :: class , $ pageSeo , [ 'action' => $ this -> generateUrl ( 'victoire_sitemap_changePriority' , [ 'id' => $ page -> getId ( ) , ] ) , 'method' => 'PUT' , 'attr' => [ 'class' => 'sitemapPriorityForm form-inline' , 'data-pageId' => $ page -> getId ( ) , 'id' => 'sitemap-priority-type-' . $ page -> getId ( ) , 'style' => 'display: inline;' , ] , ] ) ; return $ form ; }
Create a sitemap priority type.

@param BasePage $page
@param PageSeo  $pageSeo

@return \Symfony\Component\Form\Form
Create a sitemap priority type .