MiniAsset\AssetConfig::targets PHP Method

targets() public method

Get the build targets.
public targets ( ) : array
return array An array of build targets.
    public function targets()
    {
        if (empty($this->_targets)) {
            return array();
        }
        return array_keys($this->_targets);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Create an AssetCollection with all the configured assets.
  *
  * @return \MiniAsset\AssetCollection
  */
 public function assetCollection()
 {
     $assets = $this->config->targets();
     return new AssetCollection($assets, $this);
 }