/** * Creates a new password form element. * * @param array $attributes The attributes that should be assigned to the password element. */ public function __construct(array $attributes) { parent::__construct($attributes); $this->type = 'password'; if (isset($this->attributes['value'])) { unset($this->attributes['value']); } }
/** * Creates a new search form element. * * @param array $attributes The attributes that should be assigned to the search element. */ public function __construct(array $attributes) { parent::__construct($attributes); $this->type = 'search'; }