/**
  * Return a {@link FormTemplateHelper} for this form. If one has not been
  * set, return the default helper.
  *
  * @return FormTemplateHelper
  */
 public function getTemplateHelper()
 {
     if ($this->templateHelper) {
         if (is_string($this->templateHelper)) {
             return Injector::inst()->get($this->templateHelper);
         }
         return $this->templateHelper;
     }
     return FormTemplateHelper::singleton();
 }
 /**
  * Returns the current {@link FormTemplateHelper} on either the parent
  * Form or the global helper set through the {@link Injector} layout.
  *
  * To customize a single {@link FormField}, use {@link setTemplate} and
  * provide a custom template name.
  *
  * @return FormTemplateHelper
  */
 public function getTemplateHelper()
 {
     if ($this->form) {
         return $this->form->getTemplateHelper();
     }
     return FormTemplateHelper::singleton();
 }