public function showByType(Selector $listener, string $type)
    {
        if (! in_array($type, $this->type)) {
            return $listener->themeFailedVerification();
        }

        $current = $this->memory->get("site.theme.{$type}");
        $themes = $this->getAvailableTheme($type);

        return $listener->showThemeSelection(compact('current', 'themes', 'type'));
    }
public function showByType(Selector $listener, string $type)
    {
        if (! in_array($type, $this->type)) {
            return $listener->themeFailedVerification();
        }

        $current = $this->memory->get("site.theme.{$type}");
        $themes = $this->getAvailableTheme($type);

        return $listener->showThemeSelection(compact('current', 'themes', 'type'));
    }
public function showByType ( Selector $ listener , string $ type ) { if ( ! in_array ( $ type , $ this -> type ) ) { return $ listener -> themeFailedVerification ( ) ; } $ current = $ this -> memory -> get ( "site.theme.{$type}" ) ; $ themes = $ this -> getAvailableTheme ( $ type ) ; return $ listener -> showThemeSelection ( compact ( 'current' , 'themes' , 'type' ) ) ; }
List available theme.

@param  \Orchestra\Contracts\Theme\Listener\Selector  $listener
@param  string  $type

@return mixed
List available theme .