public function transpile()
    {
        // Form
        /**
 * @var Form form
*/
        $this->form = $this->transpiler->instantiateFormObject();

        // Fields
        $fields = $this->transpiler->findFields();
        if (!is_array($fields)) {
            throw new \Exception("No fields found");
        }


        $this->form->addFields($fields);

        // Populate
        $this->form->populateFields();

        // Validate
        $this->form->validate();

        return $this->form;
    }
public function transpile()
    {
        // Form
        /**
 * @var Form form
*/
        $this->form = $this->transpiler->instantiateFormObject();

        // Fields
        $fields = $this->transpiler->findFields();
        if (!is_array($fields)) {
            throw new \Exception("No fields found");
        }


        $this->form->addFields($fields);

        // Populate
        $this->form->populateFields();

        // Validate
        $this->form->validate();

        return $this->form;
    }
public function transpile ( ) { // Form /**
 * @var Form form
*/ $ this -> form = $ this -> transpiler -> instantiateFormObject ( ) ; // Fields $ fields = $ this -> transpiler -> findFields ( ) ; if ( ! is_array ( $ fields ) ) { throw new \ Exception ( "No fields found" ) ; } $ this -> form -> addFields ( $ fields ) ; // Populate $ this -> form -> populateFields ( ) ; // Validate $ this -> form -> validate ( ) ; return $ this -> form ; }
Convert a markup to a BaseForm objet

@return mixed
Convert a markup to a BaseForm objet