Elgg\ViewsService::setViewLocation PHP Method

setViewLocation() private method

Update the location of a view file
private setViewLocation ( string $view, string $viewtype, string $path ) : void
$view string View name
$viewtype string Viewtype
$path string File path
return void
    private function setViewLocation($view, $viewtype, $path)
    {
        $view = $this->canonicalizeViewName($view);
        $path = strtr($path, '\\', '/');
        if (isset($this->locations[$viewtype][$view]) && $path !== $this->locations[$viewtype][$view]) {
            $this->overrides[$viewtype][$view][] = $this->locations[$viewtype][$view];
        }
        $this->locations[$viewtype][$view] = $path;
    }