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