Browse code

Add possibility to define an input field class in the DCA

(cherry picked from commit 95c9e6e)

Benjamin Roth authored on26/07/2017 11:00:31
Showing1 changed files
... ...
@@ -58,6 +58,11 @@ abstract class Widget extends \Contao\Widget
58 58
       $arrAttributes['eSM_fl_alignment'] = $arrData['eval']['eSM_fl_alignment'];
59 59
     }
60 60
 
61
+    if (isset($arrData['eval']['eSM_fl_fieldClass']))
62
+    {
63
+      $arrAttributes['class'] = trim($arrAttributes['class'].' '.$arrData['eval']['eSM_fl_fieldClass']);
64
+    }
65
+
61 66
     return $arrAttributes;
62 67
   }
63 68
 }
64 69
\ No newline at end of file