protected function addDefaultClass()
    {
        $formDefaultClass = $this->formObject
            ->getConfiguration()
            ->getSettings()
            ->getDefaultClass();

        $class = $this->tag->getAttribute('class');

        if (false === empty($formDefaultClass)) {
            $class = (!empty($class) ? $class . ' ' : '') . $formDefaultClass;
            $this->tag->addAttribute('class', $class);
        }
    }
protected function addDefaultClass()
    {
        $formDefaultClass = $this->formObject
            ->getConfiguration()
            ->getSettings()
            ->getDefaultClass();

        $class = $this->tag->getAttribute('class');

        if (false === empty($formDefaultClass)) {
            $class = (!empty($class) ? $class . ' ' : '') . $formDefaultClass;
            $this->tag->addAttribute('class', $class);
        }
    }
protected function addDefaultClass ( ) { $ formDefaultClass = $ this -> formObject -> getConfiguration ( ) -> getSettings ( ) -> getDefaultClass ( ) ; $ class = $ this -> tag -> getAttribute ( 'class' ) ; if ( false === empty ( $ formDefaultClass ) ) { $ class = ( ! empty ( $ class ) ? $ class . ' ' : '' ) . $ formDefaultClass ; $ this -> tag -> addAttribute ( 'class' , $ class ) ; } }
Will add a default class to the form element.

To customize the class, take a look at `settings.defaultClass` in the
form TypoScript configuration.
Will add a default class to the form element .