final class NeosAssetSource implements AssetSourceInterface (View source)

Asset source for Neos native assets

Properties

protected ThumbnailService $thumbnailService
protected AssetService $assetService
protected Bootstrap $bootstrap
protected bool $asyncThumbnails
protected ResourceManager $resourceManager
protected string $iconPath
protected string $description

Methods

__construct(string $assetSourceIdentifier, array $assetSourceOptions)

No description

createFromConfiguration(string $assetSourceIdentifier, array $assetSourceOptions)

No description

string
getIdentifier()

No description

string
getLabel()

No description

string
getIconUri()

Returns the resource path to Assetsources icon

string
getDescription()

No description

bool
isReadOnly()

No description

UriInterface|null
getThumbnailUriForAsset(AssetInterface $asset)

Internal method used by NeosAssetProxy

UriInterface|null
getPreviewUriForAsset(AssetInterface $asset)

Internal method used by NeosAssetProxy

Details

__construct(string $assetSourceIdentifier, array $assetSourceOptions)

No description

Parameters

string $assetSourceIdentifier
array $assetSourceOptions

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

No description

Parameters

string $assetSourceIdentifier
array $assetSourceOptions

Return Value

AssetSourceInterface

string getIdentifier()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string getIconUri()

Returns the resource path to Assetsources icon

Return Value

string

string getDescription()

No description

Return Value

string

AssetProxyRepositoryInterface getAssetProxyRepository()

No description

bool isReadOnly()

No description

Return Value

bool

UriInterface|null getThumbnailUriForAsset(AssetInterface $asset)

Internal method used by NeosAssetProxy

Parameters

AssetInterface $asset

Return Value

UriInterface|null

Exceptions

AssetServiceException
ThumbnailServiceException
Exception
MissingActionNameException

UriInterface|null getPreviewUriForAsset(AssetInterface $asset)

Internal method used by NeosAssetProxy

Parameters

AssetInterface $asset

Return Value

UriInterface|null

Exceptions

AssetServiceException
ThumbnailServiceException
Exception
MissingActionNameException