PHP Class NerdsAndCompany\Schematic\Services\AssetSources

Sync Craft Setups.
Author: Nerds & Company
Inheritance: extends Base
Afficher le fichier Open project: itmundi/schematic

Méthodes publiques

Méthode 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

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

Method Details

export() public méthode

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

getSourceTypeByHandle() public méthode

public getSourceTypeByHandle ( $sourceTypeHandle ) : array | mixed | null
$sourceTypeHandle
Résultat array | mixed | null

getSourceTypeById() public méthode

public getSourceTypeById ( $sourceTypeId ) : array | mixed | null
$sourceTypeId
Résultat array | mixed | null

import() public méthode

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