Returns view specific auto assign variables.

@param  string $view View
@return array
162620
protected function getAutoAssignVariablesForView(string $view): array
	{
		if(!isset($this->autoAssignVariables[$view]))
		{
			return [];
		}

		return ($this->autoAssignVariables[$view])();
	}
1019761
private function getViewUrl(View $view)
    {
        if (!method_exists($view, 'getUrl')) {
            return $this->generateUrl('victoire_business_template_show', ['id' => $view->getId()]);
        }

        /** @var ViewReference $viewReference */
        $viewReference = $this->container->get('victoire_view_reference.repository')
            ->getOneReferenceByParameters(['viewId' => $view->getId()]);

        $view->setReference($viewReference);

        return $this->generateUrl('victoire_core_page_show', ['url' => $viewReference->getUrl()]);
    }
156503
private function guessBestLayoutForView(View $view)
    {
        if (method_exists($view, 'getLayout') && $view->getLayout()) {
            $viewLayout = $view->getLayout();
        } else {
            $viewLayout = $view->getTemplate()->getLayout();
        }

        return $viewLayout;
    }
669871
protected function getViewModuleFiles($view)
    {
        $rootPath = resource_path('views/' . str_replace('.', '/', $view));

        return [
            $rootPath . '/index',
            $rootPath . '/show',
            $rootPath . '/create',
            $rootPath . '/edit'
        ];
    }
555098
public function setView($view)
    {
        $this->view = $view;

        $this->setDisplay(function ($model) {
            $this->data['model'] = $model;

            return view($this->getView(), $this->data);
        });

        return $this;
    }
56057
public function renderViewElement(View $view): ?string
    {
        if (empty($this->viewElement)) {
            return null;
        }

        return call_user_func_array([$view, 'element'], $this->viewElement);
    }
922766
public function gather_data( View $view ) {
		$data = [];

		if ( $this->engine->bound( 'data' ) ) {
			$data = $this->engine->make( 'data' );
		}

		$data = array_merge( $view->get_data(), $data );
		$data = array_merge( $this->get_composer( $view ), $data );
		$data = array_merge( $this->get_wildcard_composer(), $data );

		foreach ( $data as $key => $value ) {
			if ( is_callable( $value ) ) {
				$data[$key] = call_user_func( $value, $view );
			}
		}

		$this->engine->bind( 'data', $data );
		$this->reset_composer( $view );
		$this->reset_wildcard_composer();

		return $data;
	}
215657
private function data($view) {


		$data['var'] = $this->module->get('var');

		if(isset($view['with']) ) {

			foreach((array) $view['with'] as $name => $value) {

				$data['var'][$name] = $value;
			}
		}

		$data['file'] = $this->getPath($view, $this->module->get('module'));


		return $data;
	}
772686
private function setUpdaterManageVars($view)
    {
        $view->isGeoIp2Available = $this->isGeoIp2Enabled();

        if ($this->isGeoIp2Enabled()) {
            // Get GeoIPLegacy Update information to show them
            $urls = GeoIPAutoUpdater::getConfiguredUrls();

            $view->geoIPLegacyLocUrl = $urls['loc'];
            $view->geoIPLegacyIspUrl = $urls['isp'];
            $view->geoIPLegacyOrgUrl = $urls['org'];
            $view->geoIPLegacyUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();

            $urls = GeoIP2AutoUpdater::getConfiguredUrls();

            $view->geoIPLocUrl = $urls['loc'];
            $view->geoIPIspUrl = $urls['isp'];
            $view->geoIPUpdatePeriod = GeoIP2AutoUpdater::getSchedulePeriod();

            $view->geoLiteUrl = GeoIp2::GEO_LITE_URL;
            $view->geoLiteFilename = 'GeoLite2-City.mmdb';
            $view->nextRunTime = GeoIP2AutoUpdater::getNextRunTime();

            $lastRunTime = GeoIP2AutoUpdater::getLastRunTime();
        } else {
            $urls = GeoIPAutoUpdater::getConfiguredUrls();

            $view->geoIPLocUrl = $urls['loc'];
            $view->geoIPIspUrl = $urls['isp'];
            $view->geoIPOrgUrl = $urls['org'];
            $view->geoIPUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();

            $view->geoLiteUrl = GeoIp::GEO_LITE_URL;
            $view->geoLiteFilename = 'GeoLiteCity.dat';
            $view->nextRunTime = GeoIPAutoUpdater::getNextRunTime();

            $lastRunTime = GeoIPAutoUpdater::getLastRunTime();
        }

        if ($lastRunTime !== false) {
            $view->lastTimeUpdaterRun = '<strong>' . $lastRunTime->toString() . '</strong>';
        }
   }
49010
protected function initViewContentBlocks($view)
    {
        $view->setBlock(
            'content',
            $this->getRequest()->getControllerName() . '/' . $this->getRequest()->getActionName()
        );

        return $view;
    }
824897
public function isOnView($view)
    {
        $view = ucfirst(strtolower($view));

        if (in_array($view, ['Form', 'Index', 'Show'])) {
            return $this->{'isOn' . $view . 'View'};
        }

        return false;
    }
334027
public function setView(\Zend_View_Interface $view = null)
    {
        $element = parent::setView($view);
        if (null !== $view) {
            if (false === $view->getPluginLoader('helper')->getPaths('Gems_JQuery_View_Helper')) {
                $view->addHelperPath('Gems/JQuery/View/Helper', 'Gems_JQuery_View_Helper');
            }
        }
        return $element;
    }
521505
protected function makeView($view)
    {
        if( Auth::check() ) {
            $this->addParameter( 'activeUser', Auth::user() );
        }

        return View::make( $view, $this->parameters );
    }
532377
protected function parseView($view)
    {
        if (is_string($view)) {
            return array($view, null, null);
        }

        // If the given view is an array with numeric keys, we will just assume that
        // both a "pretty" and "plain" view were provided, so we will return this
        // array as is, since must should contain both views with numeric keys.
        if (is_array($view) && isset($view[0])) {
            return array($view[0], $view[1], null);
        }

        // If the view is an array, but doesn't contain numeric keys, we will assume
        // the the views are being explicitly specified and will extract them via
        // named keys instead, allowing the developers to use one or the other.
        else if (is_array($view)) {
            return array(
                Arr::get($view, 'html'),
                Arr::get($view, 'text'),
                Arr::get($view, 'raw'),
            );
        }

        throw new \InvalidArgumentException("Invalid view.");
    }
828295
private function getPageRoles(View $view)
    {
        $insertAncestorRole = function (View $view = null) use (&$insertAncestorRole) {
            if ($view === null) {
                return;
            }
            $roles = $view->getRoles();

            if ($templateRoles = $insertAncestorRole($view->getTemplate(), $roles)) {
                $roles .= ($roles ? ',' : '').$templateRoles;
            }
            if ($parentRoles = $insertAncestorRole($view->getParent(), $roles)) {
                $roles .= ($roles ? ',' : '').$parentRoles;
            }

            return $roles;
        };

        $roles = $insertAncestorRole($view);

        if ($roles) {
            return array_unique(explode(',', $roles));
        }
    }
1060899
public function setView($view)
    {
        parent::setView($view);

        if (!$this->_view instanceof ComBaseViewAbstract) {
            $name = AnInflector::isPlural($this->view) ? 'actors' : 'actor';
            $defaults[] = 'ComActorsView'.ucfirst($view).ucfirst($this->_view->name);
            $defaults[] = 'ComActorsView'.ucfirst($name).ucfirst($this->_view->name);
            register_default(array(
                'identifier' => $this->_view,
                'default' => $defaults,
                ));
        }

        return $this;
    }
662594
public function getHelperLinks($view)
    {
        if (empty($this->helperLinks[$view])) {
            $this->helperLinks[$view] = [];
        }

        return $this->helperLinks[$view];
    }