public function getThemeAttribute()
    {
        if ($this->themeCache !== null) {
            return $this->themeCache;
        }

        $themeName = $this->getDatasourceName()
            ?: static::getDatasourceResolver()->getDefaultDatasource();

        return $this->themeCache = Theme::load($themeName);
    }
public function getThemeAttribute()
    {
        if ($this->themeCache !== null) {
            return $this->themeCache;
        }

        $themeName = $this->getDatasourceName()
            ?: static::getDatasourceResolver()->getDefaultDatasource();

        return $this->themeCache = Theme::load($themeName);
    }
public function getThemeAttribute ( ) { if ( $ this -> themeCache !== null ) { return $ this -> themeCache ; } $ themeName = $ this -> getDatasourceName ( ) ? : static :: getDatasourceResolver ( ) -> getDefaultDatasource ( ) ; return $ this -> themeCache = Theme :: load ( $ themeName ) ; }
Returns the CMS theme this object belongs to.
@return \Cms\Classes\Theme
Returns the CMS theme this object belongs to .