public function display(Form $form) {
        if (!$this->visible){
            return "";
        }
        $this->form = $form;
        if (!isset($this->rowHtmlOptions['class'])) {
            $this->rowHtmlOptions['class'] = $this->rowClass;
        } else {
            $this->rowHtmlOptions['class'] .= ' ' . $this->rowClass;
        }
        if (!is_null($this->getError())){
            $this->rowHtmlOptions['class'] .= ' has-error';
        }
        return Html::get()->tag('div', $this->getContent(), $this->rowHtmlOptions);
    }
public function display(Form $form) {
        if (!$this->visible){
            return "";
        }
        $this->form = $form;
        if (!isset($this->rowHtmlOptions['class'])) {
            $this->rowHtmlOptions['class'] = $this->rowClass;
        } else {
            $this->rowHtmlOptions['class'] .= ' ' . $this->rowClass;
        }
        if (!is_null($this->getError())){
            $this->rowHtmlOptions['class'] .= ' has-error';
        }
        return Html::get()->tag('div', $this->getContent(), $this->rowHtmlOptions);
    }
public function display ( Form $ form ) { if ( ! $ this -> visible ) { return "" ; } $ this -> form = $ form ; if ( ! isset ( $ this -> rowHtmlOptions [ 'class' ] ) ) { $ this -> rowHtmlOptions [ 'class' ] = $ this -> rowClass ; } else { $ this -> rowHtmlOptions [ 'class' ] .= ' ' . $ this -> rowClass ; } if ( ! is_null ( $ this -> getError ( ) ) ) { $ this -> rowHtmlOptions [ 'class' ] .= ' has-error' ; } return Html :: get ( ) -> tag ( 'div' , $ this -> getContent ( ) , $ this -> rowHtmlOptions ) ; }
Get html content for current field.
@param \mpf\widgets\form\Form $form
@return string
Get html content for current field .