/** * Returns an array of templates to use for rendering {@link FieldH} * * @return array */ public function getTemplates() { $template = parent::getTemplates(); if ($default = $this->defaultTemplate) { $key = array_search('FormField', $template); if ($key !== false) { $default[$key] = $this->defaultTemplate; } } return $template; }