interface AssetSourceInterface (View source)

Methods

createFromConfiguration(string $assetSourceIdentifier, array $assetSourceOptions)

This factory method is used instead of a constructor in order to not dictate a __construct() signature in this interface (which might conflict with an asset source's implementation or generated Flow proxy class).

string
getIdentifier()

A unique string which identifies the concrete asset source.

string
getLabel()

No description

string
getIconUri()

Returns the resource path to the icon of the asset source

string
getDescription()

Returns the description of the asset source

bool
isReadOnly()

No description

Details

static AssetSourceInterface createFromConfiguration(string $assetSourceIdentifier, array $assetSourceOptions)

This factory method is used instead of a constructor in order to not dictate a __construct() signature in this interface (which might conflict with an asset source's implementation or generated Flow proxy class).

Parameters

string $assetSourceIdentifier
array $assetSourceOptions

Return Value

AssetSourceInterface

string getIdentifier()

A unique string which identifies the concrete asset source.

Must match /^[a-z][a-z0-9-]{0,62}[a-z]$/

Return Value

string

string getLabel()

No description

Return Value

string

string getIconUri()

Returns the resource path to the icon of the asset source

Return Value

string

string getDescription()

Returns the description of the asset source

Return Value

string

AssetProxyRepositoryInterface getAssetProxyRepository()

No description

bool isReadOnly()

No description

Return Value

bool