/** * @return array */ public function get_all_attributes() { $attributes = $this->attributes->get_all_attributes(); $attributes['type'] = $this->type; $attributes['value'] = $this->get_attribute('value'); return $attributes; }
public function get_all_attributes() { $attributes = $this->attributes->get_all_attributes(); if (!isset($attributes['action'])) { $attributes['action'] = ''; // required attributes } // TODO: automatically set enctype to multipart/form-data if a file input is included return $attributes; }