Caffeinated\Themes\Themes::getView PHP Method

getView() public method

Gets the given view file.
public getView ( string $view ) : string | null
$view string
return string | null
    public function getView($view)
    {
        $activeTheme = $this->getActive();
        $parent = $this->getProperty($activeTheme . '::parent');
        $views = ['theme' => $this->getThemeNamespace($view), 'parent' => $this->getThemeNamespace($view, $parent), 'module' => $this->getModuleView($view), 'base' => $view];
        foreach ($views as $view) {
            if ($this->viewFactory->exists($view)) {
                return $view;
            }
        }
        return false;
    }