Caffeinated\Themes\Themes::all PHP Method

all() public method

Get all themes.
public all ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
    public function all()
    {
        $themes = [];
        if ($this->files->exists($this->getPath())) {
            $scannedThemes = $this->files->directories($this->getPath());
            foreach ($scannedThemes as $theme) {
                $themes[] = basename($theme);
            }
        }
        return new Collection($themes);
    }