Matches the $view against a set of matchers.

@param \eZ\Publish\Core\MVC\Symfony\View\View $view

@return bool
770130
public function match(View $view)
    {
        if (!$view instanceof TagValueView) {
            return false;
        }

        $tag = $view->getTag();

        $parentTag = $this->tagsService->sudo(
            static function (TagsService $tagsService) use ($tag) {
                return $tagsService->loadTag($tag->parentTagId);
            }
        );

        $keyword = $this->translationHelper->getTranslatedByMethod(
            $parentTag,
            'getKeyword'
        );

        return isset($this->values[$keyword]);
    }
368177
public function compose(View $view)
    {

        $view->with('esi_status', EsiStatus::latest()->first());
        $view->with('is_rate_limited', $this->isEsiRateLimited());
        $view->with('rate_limit_ttl', $this->getRateLimitKeyTtl());
    }
517279
public function compose(View $view)
    {
        $archives = Post::published()->get()->groupBy(function (Post $post) {
            return $post->published_at->year;
        });

        $view->with('archivesWidgetItems', $archives);
    }
857280
function hasViewResult( $view = '' )
    {
        if ( $view == '' )
            $view = $this->currentView();
        return isset( $this->ViewResult[$view] );
    }
1350406
public function findView($view)
    {
        $file = $this->basePath("app/View/$view.php");
        if($this->findFile($file)) {
            return $file;
        }
        else {
            throw new Exception($file." View file is missing.");
            exit;
        }
    }
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;
	}
655798
public function compose(View $view)
    {
        /**
         * @var  \Carbon\Carbon                  $start
         * @var  \Carbon\Carbon                  $end
         * @var  \Illuminate\Support\Collection  $range
         */
        extract(DateRange::getCurrentMonthDaysRange());

        $view->with('countriesRatio', $this->calculateCountriesPercentage(
            $this->getCountriesCountFromSessions($start, $end)
        ));
    }
1252
public function compose(View $view)
    {
        $displayMetrics = $this->config->get('setting.display_graphs');
        $metrics = $this->getVisibleMetrics($displayMetrics);

        $view->withDisplayMetrics($displayMetrics)
            ->withMetrics($metrics);
    }
1013510
public static function setView($view)
    {
        if (count(self::$execContexts)) {
            self::$execContexts[count(self::$execContexts) - 1]['view'] = $view;
        }
    }
377622
public function compose(View $view)
    {
        $userGroupRepository = app(UserGroupInterface::class);
        $userGroupOptions = $userGroupRepository->all()->pluck('name', 'id');
        $view->with('userGroupOptions', $userGroupOptions);
    }
847978
public function add(View $view)
    {
        // Append to the stack.
        $this->stack->append($view);

        if ($view->getType() === View::PART_BODY_PLACEHOLDER) {
            $this->bodyKey = (count($this->stack) - 1);
        }

        return count($this->stack);
    }
41881
public function compose(View $view)
    {
        $locales = localization()->getSupportedLocales()->transform(function (Locale $locale) {
            return $locale->native();
        });

        $view->with('supportedLocales', $locales);
    }
919191
public function includeFunc( View $view)
	{
		if( $this->isFunc() )
		{
			Helper::includeFile( $this->getFuncFilePath(), ["view" => $view], false, true );
		}
		return $this;
	}
99397
protected function verifyViewExists($view)
    {
        // Verify the user passed us a correct view
        if($view && !$this->laravel->view->exists($view))
        {
            $this->laravel->config->get("maintenancemode.view");
            $this->error("The view \"{$view}\" does not exist. If you continue, the view from the configuration file \"{$this->laravel->config->get("maintenancemode.view")}\" will be used until \"{$view}\" is found.");
            return $this->confirm('Do you wish to continue? [y|N]');
        }
        return true;
    }
581448
public function getSubstituteForView(View $view)
    {
        foreach ($this->getContextualSubstitutes() as $substitute) {
            if ($substitute->getView() === $view) {
                return $substitute;
            }

            while ($template = $view->getTemplate()) {
                if ($substitute->getView() === $template) {
                    return $substitute;
                }
            }
        }
    }
193421
public static function exists($view)
    {
        $path = INPHINIT_PATH . 'application/View/' . strtr($view, '.', '/') . '.php';
        return is_file($path) && \UtilsCaseSensitivePath($path);
    }
41582
protected function view( $view ) {
		if ( preg_match( '/\.\w+$/', $view, $matches ) && in_array( $matches[0], $this->extensions() ) ) {
			return str_replace( '.', '/', preg_replace( '/' . $matches[0] . '$/', '', $view ) ) . $matches[0];
		}

		return $this->extension( str_replace( '.', '/', $view ) );
	}