public function getAllNames()
    {
        /** @var \RecursiveDirectoryIterator $files */
        $files = new \DirectoryIterator($this->getTemplatePath());

        $template_names = [];
        while ($files->valid()) {
            $name = $files->getBasename();

            // skip abstract files
            if (!$files->isDir() || in_array($name, ['.', '..'], true)) {
                $files->next();
                continue;
            }

            $template_names[] = $name;
            $files->next();
        }

        return $template_names;
    }
public function getAllNames()
    {
        /** @var \RecursiveDirectoryIterator $files */
        $files = new \DirectoryIterator($this->getTemplatePath());

        $template_names = [];
        while ($files->valid()) {
            $name = $files->getBasename();

            // skip abstract files
            if (!$files->isDir() || in_array($name, ['.', '..'], true)) {
                $files->next();
                continue;
            }

            $template_names[] = $name;
            $files->next();
        }

        return $template_names;
    }
public function getAllNames ( ) { /** @var \RecursiveDirectoryIterator $files */ $ files = new \ DirectoryIterator ( $ this -> getTemplatePath ( ) ) ; $ template_names = [ ] ; while ( $ files -> valid ( ) ) { $ name = $ files -> getBasename ( ) ; // skip abstract files if ( ! $ files -> isDir ( ) || in_array ( $ name , [ '.' , '..' ] , true ) ) { $ files -> next ( ) ; continue ; } $ template_names [ ] = $ name ; $ files -> next ( ) ; } return $ template_names ; }
Returns a list of all template names.

@return string[]
Returns a list of all template names .