protected function getUpdateSeoEvent($formData)
    {
        $updateSeoEvent = new UpdateSeoEvent($formData['id']);

        $updateSeoEvent
            ->setLocale($formData['locale'])
            ->setMetaTitle($formData['meta_title'])
            ->setMetaDescription($formData['meta_description'])
            ->setMetaKeywords($formData['meta_keywords'])
            ->setUrl($formData['url'])
        ;

        // Create and dispatch the change event
        return $updateSeoEvent;
    }
protected function getUpdateSeoEvent($formData)
    {
        $updateSeoEvent = new UpdateSeoEvent($formData['id']);

        $updateSeoEvent
            ->setLocale($formData['locale'])
            ->setMetaTitle($formData['meta_title'])
            ->setMetaDescription($formData['meta_description'])
            ->setMetaKeywords($formData['meta_keywords'])
            ->setUrl($formData['url'])
        ;

        // Create and dispatch the change event
        return $updateSeoEvent;
    }
protected function getUpdateSeoEvent ( $ formData ) { $ updateSeoEvent = new UpdateSeoEvent ( $ formData [ 'id' ] ) ; $ updateSeoEvent -> setLocale ( $ formData [ 'locale' ] ) -> setMetaTitle ( $ formData [ 'meta_title' ] ) -> setMetaDescription ( $ formData [ 'meta_description' ] ) -> setMetaKeywords ( $ formData [ 'meta_keywords' ] ) -> setUrl ( $ formData [ 'url' ] ) ; // Create and dispatch the change event return $ updateSeoEvent ; }
Creates the update SEO event with the provided form data

@param $formData
@return UpdateSeoEvent
Creates the update SEO event with the provided form data