public function all()
    {
        $list = [];

        /** @var UniformResourceLocator $locator */
        $locator = $this->grav['locator'];

        $iterator = $locator->getIterator('themes://');

        /** @var \DirectoryIterator $directory */
        foreach ($iterator as $directory) {
            if (!$directory->isDir() || $directory->isDot()) {
                continue;
            }

            $theme = $directory->getFilename();
            $result = $this->get($theme);

            if ($result) {
                $list[$theme] = $result;
            }
        }
        ksort($list);

        return $list;
    }
public function all()
    {
        $list = [];

        /** @var UniformResourceLocator $locator */
        $locator = $this->grav['locator'];

        $iterator = $locator->getIterator('themes://');

        /** @var \DirectoryIterator $directory */
        foreach ($iterator as $directory) {
            if (!$directory->isDir() || $directory->isDot()) {
                continue;
            }

            $theme = $directory->getFilename();
            $result = $this->get($theme);

            if ($result) {
                $list[$theme] = $result;
            }
        }
        ksort($list);

        return $list;
    }
public function all ( ) { $ list = [ ] ; /** @var UniformResourceLocator $locator */ $ locator = $ this -> grav [ 'locator' ] ; $ iterator = $ locator -> getIterator ( 'themes://' ) ; /** @var \DirectoryIterator $directory */ foreach ( $ iterator as $ directory ) { if ( ! $ directory -> isDir ( ) || $ directory -> isDot ( ) ) { continue ; } $ theme = $ directory -> getFilename ( ) ; $ result = $ this -> get ( $ theme ) ; if ( $ result ) { $ list [ $ theme ] = $ result ; } } ksort ( $ list ) ; return $ list ; }
Return list of all theme data with their blueprints.

@return array
Return list of all theme data with their blueprints .