GulpBundleAssetsBundles implements AssetBundlesInterface
Represents a collection of asset bundles, loaded from a gulp-bundle-assets results file.
Tags
Table of Contents
$cssBundles | array | |
---|---|---|
$jsBundles | array | |
__construct() | Constructor. | mixed |
getCssBundleAssets() | Gets assets in specified CSS bundle. | string[] |
getJsBundleAssets() | Gets assets in specified JS bundle. | string[] |
readSchema() | Attempts to read the schema file from provided path. | mixed|Repository |
Properties
$cssBundles
protected
array
$cssBundles
$jsBundles
protected
array
$jsBundles
Methods
__construct()
Constructor.
public
__construct(
$filePath :
string
)
: mixed
Parameters
- $filePath : string
Path to gulp-bundle-assets file.
Return values
mixedgetCssBundleAssets()
Gets assets in specified CSS bundle.
public
getCssBundleAssets(
[ $bundleName :
mixed
= '' ]
)
: string[]
Parameters
- $bundleName : mixed = ''
Name of bundle.
Return values
string[]getJsBundleAssets()
Gets assets in specified JS bundle.
public
getJsBundleAssets(
[ $bundleName :
mixed
= '' ]
)
: string[]
Parameters
- $bundleName : mixed = ''
Name of bundle.
Return values
string[]readSchema()
Attempts to read the schema file from provided path.
protected
readSchema(
$path :
string
[, $useRepository :
bool
= false ]
)
: mixed|Repository
Parameters
- $path : string
Path to schema file.
- $useRepository : bool = false
Deprecated, will be removed in a future release. Setting this to true is recommended for an easier migration.
Tags
Return values
mixed|Repository —Returns file contents parsed by json_decode or a Repository if $useRepository is true.