Example #1
0
 /**
  * Hydrate the update form for this object, before passing it to the update template
  *
  * @param \Thelia\Model\State $object
  */
 protected function hydrateObjectForm($object)
 {
     $data = array('id' => $object->getId(), 'locale' => $object->getLocale(), 'visible' => $object->getVisible() ? true : false, 'country_id' => $object->getCountryId(), 'title' => $object->getTitle(), 'isocode' => $object->getIsocode());
     return $this->createForm(AdminForm::STATE_MODIFICATION, 'form', $data);
 }