Skip to content

Commit a72b700

Browse files
committed
Adding type() getter on element.
1 parent a2ffd74 commit a72b700

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/AdamWathan/Form/Elements/Element.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ protected function removeAttribute($attribute)
1818
unset($this->attributes[$attribute]);
1919
}
2020

21+
public function type()
22+
{
23+
return $this->attributes['type'];
24+
}
25+
2126
public function data($attribute, $value)
2227
{
2328
$this->setAttribute('data-'.$attribute, $value);

0 commit comments

Comments
 (0)