public function getRootForm()
    {
        $rootRenderable = $this->parentRenderable;
        while ($rootRenderable !== null && !($rootRenderable instanceof FormDefinition)) {
            $rootRenderable = $rootRenderable->getParentRenderable();
        }
        if ($rootRenderable === null) {
            throw new FormDefinitionConsistencyException(sprintf('The form element "%s" is not attached to a parent form.', $this->identifier), 1326803398);
        }

        return $rootRenderable;
    }
public function getRootForm()
    {
        $rootRenderable = $this->parentRenderable;
        while ($rootRenderable !== null && !($rootRenderable instanceof FormDefinition)) {
            $rootRenderable = $rootRenderable->getParentRenderable();
        }
        if ($rootRenderable === null) {
            throw new FormDefinitionConsistencyException(sprintf('The form element "%s" is not attached to a parent form.', $this->identifier), 1326803398);
        }

        return $rootRenderable;
    }
public function getRootForm ( ) { $ rootRenderable = $ this -> parentRenderable ; while ( $ rootRenderable !== null && ! ( $ rootRenderable instanceof FormDefinition ) ) { $ rootRenderable = $ rootRenderable -> getParentRenderable ( ) ; } if ( $ rootRenderable === null ) { throw new FormDefinitionConsistencyException ( sprintf ( 'The form element "%s" is not attached to a parent form.' , $ this -> identifier ) , 1326803398 ) ; } return $ rootRenderable ; }
Get the root form this element belongs to

@internal
@throws FormDefinitionConsistencyException
@return FormDefinition
Get the root form this element belongs to