src/Forms/FormField.php
public function hasClass($class)
    {
        $classes = explode(' ', strtolower($this->extraClass()));
        return in_array(strtolower(trim($class)), $classes);
    }
public function hasClass($class)
    {
        $classes = explode(' ', strtolower($this->extraClass()));
        return in_array(strtolower(trim($class)), $classes);
    }
public function hasClass ( $ class ) { $ classes = explode ( ' ' , strtolower ( $ this -> extraClass ( ) ) ) ; return in_array ( strtolower ( trim ( $ class ) ) , $ classes ) ; }
Returns whether the current field has the given class added

@param string $class

@return bool
Returns whether the current field has the given class added