@param View $view

@return BaseReferenceBuilder
350942
public function getViewReferenceBuilder(View $view)
    {
        if (array_key_exists($viewClass = ClassUtils::getClass($view), $this->viewsReferenceBuilders)) {
            return $this->viewsReferenceBuilders[$viewClass];
        }

        throw new ServiceNotFoundException('No view reference builder found for '.$viewClass);
    }
197469
public function build(View $view, $updatePage = true)
    {
        $builtWidgetMap = [];

        $widgetMaps = $this->contextualViewWarmer->warm($view);

        $slots = $this->removeOverwritedWidgetMaps($widgetMaps);

        $this->removeDeletedWidgetMaps($slots);

        foreach ($slots as $slot => $slotWidgetMaps) {
            $mainWidgetMap = null;
            $builtWidgetMap[$slot] = [];

            $rootWidgetMap = $this->findRootWidgetMap($slotWidgetMaps);

            if ($rootWidgetMap) {
                $builtWidgetMap[$slot][] = $rootWidgetMap;
                $builtWidgetMap = $this->orderizeWidgetMap($rootWidgetMap, $builtWidgetMap, $slot, $slotWidgetMaps, $view);
            }
        }

        if ($updatePage) {
            $view->setBuiltWidgetMap($builtWidgetMap);
        }

        return $builtWidgetMap;
    }
821565
final public function setView(View $view) {
        $this->view = $view;
        if (!$this->initializedView) {
            $this->initializedView = true;
            $this->init();
        }
        return $this;
    }
1210193
protected function getSerializationContext(View $view)
    {
        $context = $view->getContext();

        $groups = $context->getGroups();
        if (empty($groups) && $this->exclusionStrategyGroups) {
            $context->setGroups($this->exclusionStrategyGroups);
        }

        if (null === $context->getVersion() && $this->exclusionStrategyVersion) {
            $context->setVersion($this->exclusionStrategyVersion);
        }

        if (null === $context->getSerializeNull() && null !== $this->serializeNullStrategy) {
            $context->setSerializeNull($this->serializeNullStrategy);
        }

        return $context;
    }
1180003
final public function setView(View $view) {
        $this->view = $view;
        $this->publicAssetsPath = ROOT . 'public' . DIRECTORY_SEPARATOR . '.assets' . DIRECTORY_SEPARATOR;
        return $this;
    }
1169996
public function getAllForView(View $view)
    {
        //Get all WidgetMaps ids for this View
        $widgetMapsIdsToSearch = [];
        foreach ($view->getBuiltWidgetMap() as $widgetMaps) {
            foreach ($widgetMaps as $widgetMap) {
                $widgetMapsIdsToSearch[] = $widgetMap->getId();
            }
        }

        return $this->createQueryBuilder('widget')
            ->join('widget.widgetMap', 'widgetMap')
            ->andWhere('widgetMap.id IN (:widgetMapsIds)')
            ->setParameter('widgetMapsIds', $widgetMapsIdsToSearch);
    }
616031
public function make( $view, $data = [] ) {
		return new View( $this, $this->engine, $this->view( $view ), $this->create_data( $data ) );
	}
759078
public function setView($view)
    {
        if (!($view instanceof LibBaseViewAbstract)) {
            if (is_string($view) && strpos($view, '.') === false) {
                $identifier = clone $this->getIdentifier();
                $identifier->path = array('view', $view);
                $identifier->name = 'html';
            } else {
                $identifier = $this->getIdentifier($view);
            }

            if ($identifier->path[0] != 'view') {
                throw new LibBaseTemplateException('Identifier: '.$identifier.' is not a view identifier');
            }

            $view = $identifier;
        }

        $this->_view = $view;

        return $this;
    }
377622
public function compose(View $view)
    {
        $userGroupRepository = app(UserGroupInterface::class);
        $userGroupOptions = $userGroupRepository->all()->pluck('name', 'id');
        $view->with('userGroupOptions', $userGroupOptions);
    }
740310
public function setView($view, array $data = [])
    {
        $this->view = $view;

        $this->data = $data;

        return $this;
    }
521505
protected function makeView($view)
    {
        if( Auth::check() ) {
            $this->addParameter( 'activeUser', Auth::user() );
        }

        return View::make( $view, $this->parameters );
    }
1311646
public function view($view = null)
    {
        if (null === $view) {
            return $this->view;
        }

        $this->view = $view;

        return $this;
    }
92513
public function removeUrlForViewReference(ViewReference $viewReference)
    {
        $id = $viewReference->getId();
        if ($url = $this->repository->findValueForId('url', $id)) {
            $this->manager->removeUrl($url, $this->repository->findValueForId('locale', $id));
        }
    }
635300
protected function getSerializationContext(View $view)
    {
        $context = parent::getSerializationContext($view);

        if ($this->serializerEnableMaxDepthChecks) {
            $context->enableMaxDepthChecks();
        }

        return $context;
    }
699391
public function reverseTransform($viewReference)
    {
        $xml = <<<'XML'
<?xml version='1.0' encoding='UTF-8' ?>
<viewReference/>
XML;

        $element = new \SimpleXMLElement($xml);

        foreach ($this->properties as $prop) {
            $methodName = 'get'.ucfirst($prop->getName());
            $element->addAttribute($prop->getName(), $viewReference->$methodName());
        }

        return $element;
    }
274627
public function removeReference(ViewReference $viewReference)
    {
        $referenceId = $viewReference->getId();
        if ($url = $this->repository->findValueForId('url', $referenceId)) {
            // Remove url
            $this->manager->removeUrl($url, $viewReference->getLocale());
        }
        // Remove reference
        $this->manager->remove($referenceId);
    }
1028594
public function includes($view, $data = [])
    {    
        $factory = $this->getFactory();

        $filename = $factory->getFinder()->find($view);

        $context = new static($factory);

        $context->setSectionCollection($this->getSectionCollection());

        return new View($filename, $data, $context);
    }