protected function _getView(): View
    {
        if (!$this->getConfig('view')) {
            $view = new View();
            foreach ($this->getConfig('helpers') as $helper) {
                $view->loadHelper($helper);
            }

            $this->setConfig('view', $view);
        }

        return $this->getConfig('view');
    }
protected function _getView(): View
    {
        if (!$this->getConfig('view')) {
            $view = new View();
            foreach ($this->getConfig('helpers') as $helper) {
                $view->loadHelper($helper);
            }

            $this->setConfig('view', $view);
        }

        return $this->getConfig('view');
    }
protected function _getView ( ) : View { if ( ! $ this -> getConfig ( 'view' ) ) { $ view = new View ( ) ; foreach ( $ this -> getConfig ( 'helpers' ) as $ helper ) { $ view -> loadHelper ( $ helper ) ; } $ this -> setConfig ( 'view' , $ view ) ; } return $ this -> getConfig ( 'view' ) ; }
Prepares a View instance with which the given view file
will be rendered.

@return \Cake\View\View
Prepares a View instance with which the given view file will be rendered .