protected function hydrateSeoForm($object)
    {
        // The "SEO" tab form
        $locale = $object->getLocale();
        $data = array(
            'id'               => $object->getId(),
            'locale'           => $locale,
            'url'              => $object->getRewrittenUrl($locale),
            'meta_title'       => $object->getMetaTitle(),
            'meta_description' => $object->getMetaDescription(),
            'meta_keywords'     => $object->getMetaKeywords()
        );

        $seoForm = $this->createForm(AdminForm::SEO, "form", $data);
        $this->getParserContext()->addForm($seoForm);

        // URL based on the language
        $this->getParserContext()->set('url_language', $this->getUrlLanguage($locale));
    }
protected function hydrateSeoForm($object)
    {
        // The "SEO" tab form
        $locale = $object->getLocale();
        $data = array(
            'id'               => $object->getId(),
            'locale'           => $locale,
            'url'              => $object->getRewrittenUrl($locale),
            'meta_title'       => $object->getMetaTitle(),
            'meta_description' => $object->getMetaDescription(),
            'meta_keywords'     => $object->getMetaKeywords()
        );

        $seoForm = $this->createForm(AdminForm::SEO, "form", $data);
        $this->getParserContext()->addForm($seoForm);

        // URL based on the language
        $this->getParserContext()->set('url_language', $this->getUrlLanguage($locale));
    }
protected function hydrateSeoForm ( $ object ) { // The "SEO" tab form $ locale = $ object -> getLocale ( ) ; $ data = array ( 'id' => $ object -> getId ( ) , 'locale' => $ locale , 'url' => $ object -> getRewrittenUrl ( $ locale ) , 'meta_title' => $ object -> getMetaTitle ( ) , 'meta_description' => $ object -> getMetaDescription ( ) , 'meta_keywords' => $ object -> getMetaKeywords ( ) ) ; $ seoForm = $ this -> createForm ( AdminForm :: SEO , "form" , $ data ) ; $ this -> getParserContext ( ) -> addForm ( $ seoForm ) ; // URL based on the language $ this -> getParserContext ( ) -> set ( 'url_language' , $ this -> getUrlLanguage ( $ locale ) ) ; }
Hydrate the SEO form for this object, before passing it to the update template

@param mixed $object
Hydrate the SEO form for this object before passing it to the update template