Exemple #1
0
 protected function validateField(array $field)
 {
     if (!isset($field['id']) || $field['id'] === null) {
         $field['id'] = Forms::prepareIdFromName($field['name']);
     }
     $field['label_for'] = $field['id'];
     // TODO: Think on how to improve this name hacking
     $field['name'] = Options::NAME . $field['name'];
     return $field;
 }