public static function getParentFormView(BlockView $view)
    {
        if (isset($view->vars['block_form']) && null !== $view->vars['block_form']) {
            return $view->vars['block_form'];
        }

        return null !== $view->parent
            ? static::getParentFormView($view->parent)
            : null;
    }
public static function getParentFormView(BlockView $view)
    {
        if (isset($view->vars['block_form']) && null !== $view->vars['block_form']) {
            return $view->vars['block_form'];
        }

        return null !== $view->parent
            ? static::getParentFormView($view->parent)
            : null;
    }
public static function getParentFormView ( BlockView $ view ) { if ( isset ( $ view -> vars [ 'block_form' ] ) && null !== $ view -> vars [ 'block_form' ] ) { return $ view -> vars [ 'block_form' ] ; } return null !== $ view -> parent ? static :: getParentFormView ( $ view -> parent ) : null ; }
Get the parent form view.

@param BlockView $view

@return FormView|null
Get the parent form view .