Свойство | Type | Description | |
---|---|---|---|
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$reflectionService | |||
$resourceManager | |||
$thumbnailService | |||
$uriBuilder | |||
$usageStrategies | array |
Méthode | Description | |
---|---|---|
emitAssetCreated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was added. | |
emitAssetRemoved ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was removed. | |
emitAssetResourceReplaced ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that a resource on an asset has been replaced | |
emitAssetUpdated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Signals that an asset was updated. | |
getRepository ( Neos\Media\Domain\Model\AssetInterface $asset ) : Neos\Flow\Persistence\RepositoryInterface | Returns the repository for an asset | |
getThumbnailUriAndSizeForAsset ( Neos\Media\Domain\Model\AssetInterface $asset, |
Calculates the dimensions of the thumbnail to be generated and returns the thumbnail URI. | |
getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer | Returns the total count of times an asset is used. | |
getUsageReferences ( Neos\Media\Domain\Model\AssetInterface $asset ) : array<\Neos\Media\Domain\Model\Dto\UsageReference> | Returns an array of asset usage references. | |
isInUse ( Neos\Media\Domain\Model\AssetInterface $asset ) : boolean | Returns true if the asset is used. | |
replaceAssetResource ( Neos\Media\Domain\Model\AssetInterface $asset, |
Replace resource on an asset. Takes variants and redirect handling into account. | |
validateRemoval ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | Validates if the asset can be removed |
Méthode | Description | |
---|---|---|
getUsageStrategies ( ) : array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> | Returns all registered asset usage strategies |
public emitAssetCreated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | void |
public emitAssetRemoved ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | void |
public emitAssetResourceReplaced ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | void |
public emitAssetUpdated ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | void |
public getRepository ( Neos\Media\Domain\Model\AssetInterface $asset ) : Neos\Flow\Persistence\RepositoryInterface | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | Neos\Flow\Persistence\RepositoryInterface |
public getThumbnailUriAndSizeForAsset ( Neos\Media\Domain\Model\AssetInterface $asset, |
||
$asset | Neos\Media\Domain\Model\AssetInterface | |
$configuration | ||
$request | Request argument must be provided for asynchronous thumbnails | |
Résultat | array | null | Array with keys "width", "height" and "src" if the thumbnail generation work or null |
public getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | integer |
public getUsageReferences ( Neos\Media\Domain\Model\AssetInterface $asset ) : array<\Neos\Media\Domain\Model\Dto\UsageReference> | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | array<\Neos\Media\Domain\Model\Dto\UsageReference> |
protected getUsageStrategies ( ) : array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> | ||
Résultat | array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface> |
public replaceAssetResource ( Neos\Media\Domain\Model\AssetInterface $asset, |
||
$asset | Neos\Media\Domain\Model\AssetInterface | |
$resource | ||
$options | array | |
Résultat | void |
public validateRemoval ( Neos\Media\Domain\Model\AssetInterface $asset ) : void | ||
$asset | Neos\Media\Domain\Model\AssetInterface | |
Résultat | void |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Résultat | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
Résultat | Neos\Flow\Package\PackageManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
Résultat |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
Résultat |
protected ThumbnailService,Neos\Media\Domain\Service $thumbnailService | ||
Résultat |
protected UriBuilder,Neos\Flow\Mvc\Routing $uriBuilder | ||
Résultat |