Exemplo n.º 1
0
 public function generateOptions($field, $type, array $options)
 {
     if (isset($options['type']) === false) {
         $options['type'] = $type;
     }
     if (isset($options['label']) === false) {
         $options['label'] = FieldTypeLabeler::generateLabel($field);
     }
     return $options;
 }
 public function generateFilterOptions($field, $type, array $options)
 {
     $options['required'] = false;
     $label = FieldTypeLabeler::generateLabel($field);
     return array('type' => $type, 'label' => $label, 'options' => $options);
 }