PHP Class NerdsAndCompany\Schematic\Services\AssetSources

Sync Craft Setups.
Author: Nerds & Company
Inheritance: extends Base
Show file Open project: itmundi/schematic

Public Methods

Method Description
export ( array $data = [] ) : array Export all asset sources.
getSourceTypeByHandle ( $sourceTypeHandle ) : array | mixed | null
getSourceTypeById ( $sourceTypeId ) : array | mixed | null
import ( array $assetSourceDefinitions, boolean $force = false ) : Result Import asset source definitions.

Private Methods

Method Description
getAssetSourceDefinition ( Craft\AssetSourceModel $assetSource ) : array
getAssetSourcesService ( ) : AssetSourcesService
populateAssetSource ( string $assetHandle, array $assetSourceDefinition ) : Craft\AssetSourceModel Populate asset source.

Method Details

export() public method

Export all asset sources.
public export ( array $data = [] ) : array
$data array
return array

getSourceTypeByHandle() public method

public getSourceTypeByHandle ( $sourceTypeHandle ) : array | mixed | null
$sourceTypeHandle
return array | mixed | null

getSourceTypeById() public method

public getSourceTypeById ( $sourceTypeId ) : array | mixed | null
$sourceTypeId
return array | mixed | null

import() public method

Import asset source definitions.
public import ( array $assetSourceDefinitions, boolean $force = false ) : Result
$assetSourceDefinitions array
$force boolean
return Result