Kirby\Patterns\Lab::theme PHP Method

theme() public method

public theme ( )
    public function theme()
    {
        $assets = $this->kirby->roots()->index() . DS . 'assets' . DS . 'patterns';
        $theme = new Obj();
        $theme->css = file_exists($assets . DS . 'index.css') ? 'assets/patterns/index.css' : $this->url() . '/assets/index.min.css';
        $theme->js = file_exists($assets . DS . 'index.js') ? 'assets/patterns/index.js' : $this->url() . '/assets/index.min.js';
        return $theme;
    }