/** * Hydrate the update form for this object, before passing it to the update template * * @param \Thelia\Model\Hook $object * * @return \Thelia\Form\HookModificationForm */ protected function hydrateObjectForm($object) { $data = ['id' => $object->getId(), 'code' => $object->getCode(), 'type' => $object->getType(), 'native' => $object->getNative(), 'by_module' => $object->getByModule(), 'block' => $object->getBlock(), 'active' => $object->getActivate(), 'locale' => $object->getLocale(), 'title' => $object->getTitle(), 'chapo' => $object->getChapo(), 'description' => $object->getDescription()]; return new HookModificationForm($this->getRequest(), 'form', $data); }
/** * Hydrate the update form for this object, before passing it to the update template * * @param \Thelia\Model\Hook $object * * @return \Thelia\Form\HookModificationForm */ protected function hydrateObjectForm($object) { $data = ['id' => $object->getId(), 'code' => $object->getCode(), 'type' => $object->getType(), 'native' => $object->getNative(), 'by_module' => $object->getByModule(), 'block' => $object->getBlock(), 'active' => $object->getActivate(), 'locale' => $object->getLocale(), 'title' => $object->getTitle(), 'chapo' => $object->getChapo(), 'description' => $object->getDescription()]; return $this->createForm(AdminForm::HOOK_MODIFICATION, 'form', $data); }