src/Forms/Resources/Transformers/FormTransformer.php
public function transform(FieldTypeInterface $form)
    {
        return [
            'attributes' => $form->getAttributes(),
            'flush' => $form->getOption('flush', true),
            'locale' => $form->getLocale(),
            'nonce' => $form->getOption('nonce', '_themosisnonce'),
            'referer' => $form->getOption('referer', true),
            'tags' => $form->getOption('tags', true),
            'theme' => $form->getOption('theme', 'themosis'),
            'type' => $form->getType(),
            'validation' => [
                'errors' => $form->getOption('errors', true),
                'isValid' => $form->isValid()
            ]
        ];
    }
public function transform(FieldTypeInterface $form)
    {
        return [
            'attributes' => $form->getAttributes(),
            'flush' => $form->getOption('flush', true),
            'locale' => $form->getLocale(),
            'nonce' => $form->getOption('nonce', '_themosisnonce'),
            'referer' => $form->getOption('referer', true),
            'tags' => $form->getOption('tags', true),
            'theme' => $form->getOption('theme', 'themosis'),
            'type' => $form->getType(),
            'validation' => [
                'errors' => $form->getOption('errors', true),
                'isValid' => $form->isValid()
            ]
        ];
    }
public function transform ( FieldTypeInterface $ form ) { return [ 'attributes' => $ form -> getAttributes ( ) , 'flush' => $ form -> getOption ( 'flush' , true ) , 'locale' => $ form -> getLocale ( ) , 'nonce' => $ form -> getOption ( 'nonce' , '_themosisnonce' ) , 'referer' => $ form -> getOption ( 'referer' , true ) , 'tags' => $ form -> getOption ( 'tags' , true ) , 'theme' => $ form -> getOption ( 'theme' , 'themosis' ) , 'type' => $ form -> getType ( ) , 'validation' => [ 'errors' => $ form -> getOption ( 'errors' , true ) , 'isValid' => $ form -> isValid ( ) ] ] ; }
Transform single form.

@param FieldTypeInterface $form

@return array
Transform single form .