Devise\Templates\TemplatesRepository::unregisteredTemplatesList PHP Method

unregisteredTemplatesList() public method

Get list of unregistered templates by finding all app template files which are not stored (do not have path key) in the templates config
public unregisteredTemplatesList ( ) : array
return array
    public function unregisteredTemplatesList()
    {
        $templates = array();
        $templateLocations = $this->Config->get('view');
        $regisHumanNames = $this->registeredTemplatesList();
        foreach ($templateLocations['paths'] as $path) {
            if (!$this->File->exists($path)) {
                continue;
            }
            $files = $this->File->allFiles($path);
            foreach ($files as $file) {
                if (substr_count($file->getRelativePathname(), '.blade.php')) {
                    $value = str_replace('/', '.', str_replace('.blade.php', '', $file->getRelativePathname()));
                    $nameArr = explode('.', $value);
                    $templateName = last($nameArr);
                    if (substr($templateName, 0, 1) != '_') {
                        $templates[$value] = isset($regisHumanNames[$value]) ? $regisHumanNames[$value] : $value;
                    }
                }
            }
        }
        asort($templates);
        return array_diff($templates, $regisHumanNames);
    }