Esempio n. 1
0
 /**
  * Add classes to a field
  *
  * @param Field $field
  * @param array $classes
  *
  * @return \Form\Traits\Field
  */
 protected function addClassesToField($field, $classes)
 {
     // If we found any class, add them
     if ($classes) {
         $field->addClass(implode(' ', $classes));
     }
     return $field;
 }