Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Adding type() getter on element.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed May 30, 2015
1 parent a2ffd74 commit a72b700
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AdamWathan/Form/Elements/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ protected function removeAttribute($attribute)
unset($this->attributes[$attribute]);
}

public function type()
{
return $this->attributes['type'];
}

public function data($attribute, $value)
{
$this->setAttribute('data-'.$attribute, $value);
Expand Down

0 comments on commit a72b700

Please sign in to comment.