protected function createInstance($className, $name)
    {
        $formConfiguration = $this->typoScriptService->getFormConfiguration($className);

        /** @var FormObject $instance */
        $instance = Core::instantiate(FormObject::class, $className, $name, $formConfiguration);

        $this->insertObjectProperties($instance);

        $instance->getHash();

        return $instance;
    }
protected function createInstance($className, $name)
    {
        $formConfiguration = $this->typoScriptService->getFormConfiguration($className);

        /** @var FormObject $instance */
        $instance = Core::instantiate(FormObject::class, $className, $name, $formConfiguration);

        $this->insertObjectProperties($instance);

        $instance->getHash();

        return $instance;
    }
protected function createInstance ( $ className , $ name ) { $ formConfiguration = $ this -> typoScriptService -> getFormConfiguration ( $ className ) ; /** @var FormObject $instance */ $ instance = Core :: instantiate ( FormObject :: class , $ className , $ name , $ formConfiguration ) ; $ this -> insertObjectProperties ( $ instance ) ; $ instance -> getHash ( ) ; return $ instance ; }
Creates and initializes a new `FormObject` instance.

@param string $className
@param string $name
@return FormObject
Creates and initializes a new FormObject instance .