private function getDataFromView(View $view)
    {
        $form = $this->getFormFromView($view);

        if (false === $form) {
            return $view->getData();
        }

        return $form;
    }
private function getDataFromView(View $view)
    {
        $form = $this->getFormFromView($view);

        if (false === $form) {
            return $view->getData();
        }

        return $form;
    }
private function getDataFromView ( View $ view ) { $ form = $ this -> getFormFromView ( $ view ) ; if ( false === $ form ) { return $ view -> getData ( ) ; } return $ form ; }
Returns the data from a view.

@param View $view

@return mixed|null
Returns the data from a view .