Example #1
0
 protected function updateAttributes(Attributes $attributes)
 {
     parent::updateAttributes($attributes);
     if (!$this->isMultiLine()) {
         $attributes['type'] = 'text';
     }
 }
Example #2
0
 public function updateAttributes(Attributes $attributes)
 {
     parent::updateAttributes($attributes);
     try {
         unset($attributes['value']);
     } catch (OutOfBoundsException $e) {
     }
 }
Example #3
0
 protected function updateAttributes(Attributes $attributes)
 {
     parent::updateAttributes($attributes);
     $attributes->set('type', 'hidden');
     $attributes->set('value', $this->value);
 }