public function getAttributesForForm(Form $form)
    {
        // Obtain Attributes (from parent):
        
        $attributes = parent::getAttributesForForm($form);
        
        // Define Group Class:
        
        $attributes['data-group-class'] = $this->config()->group_class;
        
        // Define Error Wrapper Class:
        
        $attributes['data-error-wrapper-class'] = $this->config()->error_wrapper_class;
        
        // Define Error Classes:
        
        $attributes['data-group-error-class']   = $this->config()->group_error_class;
        $attributes['data-field-error-class']   = $this->config()->field_error_class;
        
        // Define Success Classes:
        
        $attributes['data-group-success-class'] = $this->config()->group_success_class;
        $attributes['data-field-success-class'] = $this->config()->field_success_class;
        
        // Define Trigger Events:
        
        $attributes['data-parsley-trigger'] = $this->getTriggerOn();
        
        // Answer Attributes:
        
        return $this->flatten($attributes);
    }
public function getAttributesForForm(Form $form)
    {
        // Obtain Attributes (from parent):
        
        $attributes = parent::getAttributesForForm($form);
        
        // Define Group Class:
        
        $attributes['data-group-class'] = $this->config()->group_class;
        
        // Define Error Wrapper Class:
        
        $attributes['data-error-wrapper-class'] = $this->config()->error_wrapper_class;
        
        // Define Error Classes:
        
        $attributes['data-group-error-class']   = $this->config()->group_error_class;
        $attributes['data-field-error-class']   = $this->config()->field_error_class;
        
        // Define Success Classes:
        
        $attributes['data-group-success-class'] = $this->config()->group_success_class;
        $attributes['data-field-success-class'] = $this->config()->field_success_class;
        
        // Define Trigger Events:
        
        $attributes['data-parsley-trigger'] = $this->getTriggerOn();
        
        // Answer Attributes:
        
        return $this->flatten($attributes);
    }
public function getAttributesForForm ( Form $ form ) { // Obtain Attributes (from parent): $ attributes = parent :: getAttributesForForm ( $ form ) ; // Define Group Class: $ attributes [ 'data-group-class' ] = $ this -> config ( ) -> group_class ; // Define Error Wrapper Class: $ attributes [ 'data-error-wrapper-class' ] = $ this -> config ( ) -> error_wrapper_class ; // Define Error Classes: $ attributes [ 'data-group-error-class' ] = $ this -> config ( ) -> group_error_class ; $ attributes [ 'data-field-error-class' ] = $ this -> config ( ) -> field_error_class ; // Define Success Classes: $ attributes [ 'data-group-success-class' ] = $ this -> config ( ) -> group_success_class ; $ attributes [ 'data-field-success-class' ] = $ this -> config ( ) -> field_success_class ; // Define Trigger Events: $ attributes [ 'data-parsley-trigger' ] = $ this -> getTriggerOn ( ) ; // Answer Attributes: return $ this -> flatten ( $ attributes ) ; }
Answers an array of the validator attributes for the given form.

@param Form $form

@return array
Answers an array of the validator attributes for the given form .