Zend\Mvc\View\Http\ViewManager::getView PHP Method

getView() public method

Retrieves the View instance
public getView ( ) : Zend\View\View
return Zend\View\View
    public function getView()
    {
        if ($this->view) {
            return $this->view;
        }
        $this->view = $this->services->get(View::class);
        return $this->view;
    }