MiniAsset\AssetConfig::theme PHP Method

theme() public method

Set the active theme for building assets.
public theme ( string $theme = null ) : mixed
$theme string The theme name to set. Null to get
return mixed Either null on set, or theme on get
    public function theme($theme = null)
    {
        if ($theme === null) {
            return isset($this->_data['theme']) ? $this->_data['theme'] : '';
        }
        $this->_data['theme'] = $theme;
    }

Usage Example

 /**
  * Get the AssetCompress factory based on the config object.
  *
  * @return \AssetCompress\Factory
  */
 protected function factory()
 {
     if (empty($this->factory)) {
         $this->config->theme($this->theme);
         $this->factory = new Factory($this->config);
     }
     return $this->factory;
 }
All Usage Examples Of MiniAsset\AssetConfig::theme