Handles the optional setting of view vars within the component.

@param bool $viewVar Set the view var or not
@param \Cake\Datasource\EntityInterface $entity User entity
@return void
166683
protected function _setViewVar($viewVar, $entity) {
		if ($viewVar === false) {
			return;
		}

		$this->getController()->set($viewVar, $entity);
	}
954378
public function setView($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Kms\V1\CryptoKeyVersion_CryptoKeyVersionView::class);
        $this->view = $var;

        return $this;
    }
817276
public void setEntities(FSArray v) {
    if (Document_Type.featOkTst && ((Document_Type)jcasType).casFeat_entities == null)
      jcasType.jcas.throwFeatMissing("entities", "de.julielab.jules.types.ace.Document");
    jcasType.ll_cas.ll_setRefValue(addr, ((Document_Type)jcasType).casFeatCode_entities, jcasType.ll_cas.ll_getFSRef(v));}
821565
final public function setView(View $view) {
        $this->view = $view;
        if (!$this->initializedView) {
            $this->initializedView = true;
            $this->init();
        }
        return $this;
    }
39074
public function notFoundView(Event $event, ViewInterface $view, $enginePath) : bool
    {
        if ($enginePath && !is_array($enginePath)) {
            $enginePath = [$enginePath];
        }

        $message = sprintf(
            "View was not found in any of the views directory. Active render paths: [%s]",
            ($enginePath ? join(", ", $enginePath) : gettype($enginePath))
        );

        $this->logger->error($message);

        return true;
    }
711513
protected function prepareView(FormView $view, FormInterface $form, array $options)
    {
        if (isset($options['choice_loader'])
            && $options['choice_loader'] instanceof DynamicChoiceLoaderInterface) {
            /* @var DynamicChoiceLoaderInterface $loader */
            $loader = $options['choice_loader'];
            $values = $form->getData() instanceof ArrayCollection ? $form->getData()->toArray() : $form->getData();
            $values = \is_object($values) ? [$values] : (array) $values;
            $choiceListView = $this->createChoiceListView($loader->loadChoiceListForView($values, $options['choice_name']), $options);

            $view->vars = array_replace($view->vars, [
                'preferred_choices' => $choiceListView->preferredChoices,
                'choices' => $choiceListView->choices,
            ]);
        }
    }
35105
private function setEntityAndNotify(string $propName, ?EntityInterface $entity): void
    {
        if ($this->$propName === $entity) {
            return;
        }
        $oldValue        = $this->$propName;
        $this->$propName = $entity;
        foreach ($this->notifyChangeTrackingListeners as $listener) {
            $listener->propertyChanged($this, $propName, $oldValue, $entity);
        }
    }
164723
public function setViewPath(FilePathInterface $viewPath): void
    {
        if (!$viewPath->isDirectory()) {
            throw new InvalidFilePathException('View path "' . $viewPath . '" is not a directory.');
        }

        try {
            $this->viewPath = $this->documentRoot->withFilePath($viewPath);
        } catch (FilePathLogicException $e) {
            throw new InvalidFilePathException($e->getMessage());
        }
    }
202084
protected function initializeView(ViewInterface $view)
    {
        $view->assign('contentObjectData', $this->configurationManager->getContentObject()->data);
        parent::initializeView($view);
    }
1126735
protected function initializeView(ViewInterface $view)
    {
        parent::initializeView($view);

        /* @var ModuleTemplate $module */ // holds the state of chosen tab
        $module = GeneralUtility::makeInstance(ModuleTemplate::class);
        $coreOptimizationTabs = $module->getDynamicTabMenu([], 'coreOptimization');
        $this->view->assign('tabs', $coreOptimizationTabs);
    }
316044
protected function setVars()
    {
        $this->getModel()->setFaIcon('fa-html5');
        $this->getModel()->setHasId(false);
        $this->getModel()->setTemplate('html.html.twig');
    }
1369611
public function setEntityType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\EntityType::class);
        $this->entity_type = $var;

        return $this;
    }
295880
public void setEntityId(String v) {
    if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_entityId == null)
      jcasType.jcas.throwFeatMissing("entityId", "ch.epfl.bbp.uima.types.DictTerm");
    jcasType.ll_cas.ll_setStringValue(addr, ((DictTerm_Type)jcasType).casFeatCode_entityId, v);}
955569
public function addView(string $view, array $data): void
    {
        $num = count($this->views) + 1;
        $key = '#' . $num . ' ' . $view;

        $this->views[$key] = $this->getDataFormatter()->formatVar($data);
    }
612804
public function injectEntityDependencies(EntityInterface $entity): void
    {
        $this->buildEntityInjectMethodsForEntity($entity);
        $entityFqn = $this->leadingSlash($entity::getDoctrineStaticMeta()->getReflectionClass()->getName());
        $this->injectStatic($entity, $this->entityInjectMethods[$entityFqn][self::TYPE_KEY_STATIC]);
        $this->inject($entity, $this->entityInjectMethods[$entityFqn][self::TYPE_KEY_INSTANCE]);
    }
868598
public function setView($view)
	{
		$this->view = $view;

		// construct the view if needed
		if ( ! $this->view instanceof View)
		{
			$this->view = $this->viewManager->forge($this->view);
		}
	}
605229
public function & SetView (\MvcCore\IView & $view) {
		parent::SetView($view);
		return $this->SetLangAndLocale($this->request->GetLang(), $this->request->GetLocale());
	}