Return a View object based on Presenter.

@return \Illuminate\View\View
513487
public function index($form = null)
    {
        $areaProviders = $this->twoFactorProvidersService->getAreaProvidersCollection();
        if (is_null($form)) {
            $provider = app(Provider::class)->where('name', 'google2fa')->where('area', area())->first();

            $provider->setProviderGateway($this->twoFactorProvidersService->getProviderGatewayByName($provider->name));
            $form = $this->presenter->form($provider);
        }

        return $this->presenter->index($areaProviders, $form);
    }
882864
public function getShow($id)
    {
        $response = $this->modelService->getBy($id);

        //return resource listing view
        return view(\OogleeUConfig::get('config.user_view.view'), compact('response'));
        
    }
131073
public function getView()
	{
		if ($this->_view === NULL) {
			$this->_view = Registry::get('view');
		}

		return $this->_view;
	}
584710
public function showAction()
    {
        $id = (int) $this->params()->fromRoute('id', null);

        $service = $this->getService();
        $entity  = $service->getById($id);

        $view = new ViewModel(array(
            'entity'  => $entity,
            'options' => $this->getOptions(),
        ));

        if ($this->getOptions()->getDisplayDiagrammInDetailView()) {
            $diagramm = $this->getService()->createUseCaseDiagrammFor($entity);
            $view->setVariable('diagramm', $diagramm);
        }

        return $view;
    }
593573
public function getViewer()
    {
        if (!isset($this->viewer)) {
            $this->viewer = $this->createTwigView(['path' => $this->getViewPath()]);
            $this->viewer->addDefaultExtensions();
        }
        
        return $this->viewer;
    }
269451
protected function getView()
    {
        if (!$this->view) {
            $config = isset($this->options[self::OPTION_VIEW]) ? $this->options[self::OPTION_VIEW] : [];
            $config = $this->configToArray($config, true);

            $view = $this->createMvcView($config);

            if ($view instanceof IModelAware) {
                $view->setModelFactory($this->getModelsFactory());
            }

            return $this->view = $view;
        }

        return $this->view;
    }
257650
protected function _getViewObject() {
        if (!Zend_Registry::isRegistered('application')) {
            throw new Exception('Application is not registered.');
        }

        $bootstrap = Zend_Registry::get('application')->getBootstrap();
        $view = $bootstrap->getResource('View');

        // Unfortunately specific conditional required when using the Ano_ZFTwig package.
        // This switches the rendering engine from twig to php, since the Spawn templates are still
        // in php.
        if ($view instanceof Ano_View) {
            $view->setTemplateEngine('php');
        }
        return $view;
    }
191269
public function getView()
    {
        if (!$this->_view instanceof LibBaseViewAbstract) {
            //Make sure we have a view identifier
            if (!($this->_view instanceof AnServiceIdentifier)) {
                $this->setView($this->_view);
            }

            $this->_view = $this->getService($this->_view);
        }

        return $this->_view;
    }
1313187
public function get($name, $presenter = null)
    {
        return $this->has($name) ? $this->menus[$name]->render($presenter) : null;
    }
430775
public static function forge($presenter, $method = 'view', $auto_filter = null, $view = null)
	{
		// if no custom view is given, make it equal to the presenter name
		is_null($view) and $view = $presenter;

		// strip any extensions from the view name to determine the presenter to load
		$presenter = \Inflector::words_to_upper(str_replace(
			array('/', DS),
			'_',
			strpos($presenter, '.') === false ? $presenter : substr($presenter, 0, -strlen(strrchr($presenter, '.')))
		));

		// determine the presenter namespace from the current request context
		$namespace = \Request::active() ? ucfirst(\Request::active()->module) : '';

		// list of possible presenter classnames, start with the namespaced one
		$classes = array($namespace.'\\'.static::$ns_prefix.$presenter);

		// add the global version if needed
		empty($namespace) or $classes[] = static::$ns_prefix.$presenter;

		/**
		 * Add non prefixed classnames to the list, for BC reasons
		 *
		 * @deprecated 1.6
		 */
		$classes[] = $namespace.'\\'.$presenter;

		// and add the global version of that if needed
		empty($namespace) or $classes[] = $presenter;

		// check if we can find one
		foreach ($classes as $class)
		{
			if (class_exists($class))
			{
				return new $class($method, $auto_filter, $view);
			}
		}

		throw new \OutOfBoundsException('Presenter "'.reset($classes).'" could not be found.');
	}
86789
public function render($name, $presenter = null, $bindings = array())
    {
        return $this->get($name, $presenter, $bindings);
    }
1114598
public function getViewModel() {
		if ($this->useCache) {
			$viewModel = $this->recacheAgent->getViewModel('show', $this->entityNamespace, $this->entityId);
			if ($viewModel) {
				return $viewModel;
			}
		}
		
		$this->viewModel = new ViewModel();
		
		$dataToDisplay = $this->getEntityData($this->entityId);
		$this->viewModel->setVariable('dataToDisplay', $dataToDisplay);
		
		$this->setupTemplate();
		$this->setupTitle();
		
		if ($this->useCache) {
			$this->recacheAgent->storeViewModel($this->viewModel, 'show', $this->entityNamespace, $this->entityId);
		}
		
		return $this->viewModel;
	}
557550
public function render()
    {
        $data = array_merge(
            $this->data,
            ['attributes' => $this->formatAttributes()]
        );

        return view($this->view, $data)->render();
    }
9165
public function getPresenter(): ?IconSetInterface
    {
        static $presenter;

        if ($presenter instanceof IconSetInterface) {
            return $presenter;
        }

        return $presenter = $this->hasPresenter() ? app($this->icons_presenter_class) : null;
    }
682112
public function renderCalendarAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $view = new ViewModel();
        $view->melisKey = $melisKey;
        return $view;
    }
567014
public function getView()
    {
        // If we don't have a prefix, just return the view.
        if (is_null($this->prefix)) {
            return $this->getBaseView();
        }

        // Set up modifiable variables.
        $view     = $this->concatViewAndPrefix($this->prefix, $this->view);
        $prefixes = clone $this->prefixes;

        $this->attempted($view);

        // Try to find a valid view.
        while (! view()->exists($view)) {
            // If we are out of prefixes and the view still isn't found, back out.
            if (is_null($this->prefix) && ! view()->exists($view)) {
                $view = null;
                break;
            }

            // Remove prefixes until we don't have any left.
            if ($prefixes->count() > 0) {
                $prefixes->pop();

                $prefixes     = $this->removeControllerFromPrefixes($prefixes);
                $this->prefix = $prefixes->count() > 0 ? $prefixes->implode('.') : null;
                $view         = $this->concatViewAndPrefix($this->prefix, $this->view);
            } else {
                $this->prefix = null;
                $view         = $this->view;
            }

            $this->attempted($view);
        }

        $this->view = $view;

        return $this->view;
    }
1027238
public function instantiate()
    {
        $view = new ViewPhpService($this->app->getAppDir().'/'.self::TEMPLATES_DIR.'/');

        $view->setHelper(
            'inc',
            function ($templates, array $data = array()) use ($view) {
                return $view->render($templates, $data);
            }
        )->setHelper(
            'exe',
            function ($controller, $action, array $get = array()) {
                $request = new VirtualRequest($controller, $action, $get);

                return $this->app->getControllerDispatcher()->dispatch($request)->getContent();
            }
        )->setHelper(
            'url',
            function ($controller, $action, array $args = array(), array $get = array()) {
                return $this->app->getRouter()->buildUrl($controller, $action, $args, $get);
            }
        );

        return $view;
    }