igaster\laravelTheme\Themes::get PHP Method

get() public method

Get active's Theme Name
public get ( ) : string
return string
    public function get()
    {
        return $this->activeTheme ? $this->activeTheme->name : '';
    }

Usage Example

Beispiel #1
1
 public function testSetTheme()
 {
     $themes = new Themes();
     $theme1 = new Theme('theme1');
     $theme2 = new Theme('theme2');
     $themes->add($theme1);
     $themes->add($theme2);
     $themes->set('theme1');
     $this->assertEquals('theme1', $themes->get());
 }