Bind data to the view.

@param  View $view

@return void
320908
public function compose(View $view)
    {

        $owner = $this->getUser($this->request->character_id);
        $summary = $owner->character;
        $characters = $owner->group->users;

        $view->with('summary', $summary);
        $view->with('characters', $characters);
    }
821565
final public function setView(View $view) {
        $this->view = $view;
        if (!$this->initializedView) {
            $this->initializedView = true;
            $this->init();
        }
        return $this;
    }
505546
public function compose(View $view)
    {
        /**
         * @var  \Carbon\Carbon                  $start
         * @var  \Carbon\Carbon                  $end
         * @var  \Illuminate\Support\Collection  $range
         */
        extract(DateRange::getCurrentMonthDaysRange());

        $view->with('referersRatio', $this->calculateLanguagesPercentage(
            $this->getReferersCountFromSessionActivities($start, $end)
        ));
    }
215183
public function compose(View $view)
    {
        $character_info = CharacterInfo::find($this->request->character_id);

        if (! is_null($character_info))
            $view->with('character_name', $character_info->name);

        $user = User::find($this->request->character_id);

        if (! isset($user->refresh_token)){
            $deleted_at = $user->refresh_token()->withTrashed()->first()->deleted_at;
            redirect()->back()->with('warning', trans('web::seat.deleted_refresh_token', ['time' => human_diff($deleted_at)]));
        }
    }
637024
public function addView($view, $data = null)
    {
        if(!is_object($view))
            $view = new \erdiko\core\View($view, $data);
        if($data != null)
            $view->setData($data);
        
        $this->appendContent($view->toHtml());
    }
1058517
protected function initializeView(ViewInterface $view): void
    {
        $view->assignMultiple([
            'view' => $this->browserState->get('view'),
            'sortBy' => $this->browserState->get('sortBy'),
            'sortDirection' => $this->browserState->get('sortDirection'),
            'filter' => $this->browserState->get('filter'),
            'activeTag' => $this->browserState->get('activeTag'),
            'activeAssetCollection' => $this->browserState->get('activeAssetCollection'),
            'assetSources' => $this->assetSources,
            'variantsTabFeatureEnabled' => $this->settings['features']['variantsTab']['enable']
        ]);
    }
1004757
public function setViews(array $views)
    {
        $this->views = array();

        foreach ($views as $view) {
            $this->addView($view);
        }
    }
90918
public function compose(View $view)
    {

        $view->with('user', Auth::user());
        $view->with('user_characters', $this->getUserGroupCharacters(auth()->user()->group));
    }
1031027
public function compose(View $view)
    {
        $notifications = Auth::user()
            ->unreadNotifications
            ->where('type', DashboardNotification::class);

        $view->with('notifications', $notifications);
    }
789246
public function setView( MW_View_Interface $view )
	{
		$this->_view = $view;
		$this->_client->setView( $view );
	}
93030
public function setHeader(string $header): void {
		if ($this->compiled) {
			throw new ViewException("Attempt to alter view after compilation.", ViewException::AFTER_COMPILE_ALTERATION);
		}
		
		// $header can be either a file or a string containing the
		// header for the actual display of our view.
		
		$this->header = is_file($header)
			? file_get_contents($header)
			: $header;
	}
1078083
public function viewContentsInitialized(View $view) {
		$this->cacheStore->store($view->getName(), $this->viewCacheControl->getCharacteristics(), 
				$view->toCacheData());
	}
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);
		}
	}
188082
public function compose(View $view)
    {

        // This menu item declares the menu and
        // sets it as an array of arrays.
        $menu = [];

        // Load any package menus
        if (! empty(config('package.character.menu'))) {

            foreach (config('package.character.menu') as $menu_data) {

                $prepared_menu = $this->load_plugin_menu('character', $menu_data, true);
                if (! is_null($prepared_menu))
                    array_push($menu, $prepared_menu);

            }
        }

        // Sort the menu alphabetically.
        $menu = array_values(array_sort($menu, function ($value) {

            return $value['name'];

        }));

        $view->with('menu', $menu);
    }
223351
public function compose(View $view)
    {
        if (Session::has('multi_language_enabled')) {
            $languages = Session::get('languages');
            $defaultLanguage = Session::get('default_language');
            $langId = request()->get('language_id', $defaultLanguage->id);
            $isDefaultLang = ($defaultLanguage->id == $langId) ? true : false;
        }
        $view->withDefaultLanguage($defaultLanguage)
            ->withLanguages($languages)
            ->withIsDefaultLang($isDefaultLang);
    }
703419
public function view($view, array $data = array())
    {
        $this->view = $view;

        $this->viewData = $data;

        return $this;
    }
1150364
public function view($view = null, $layout = null)
    {
        if (! is_null($layout)) {
            $this->layoutOptions = [
                'default' => $layout,
                'ajax'    => $layout,
            ];
        }

        // Set up the default view resolution
        viewBuilder()->setUp($this->layoutOptions, $view);
        $this->setupLayout();
    }