interface AssetUsageStrategyInterface (View source)

Interface for asset usage strategies

Methods

bool
isInUse(AssetInterface $asset)

Returns true if the asset is used.

int
getUsageCount(AssetInterface $asset)

Returns the total count of usages found.

getUsageReferences(AssetInterface $asset)

Returns an array of usage reference objects.

Details

bool isInUse(AssetInterface $asset)

Returns true if the asset is used.

Parameters

AssetInterface $asset

Return Value

bool

int getUsageCount(AssetInterface $asset)

Returns the total count of usages found.

Parameters

AssetInterface $asset

Return Value

int

UsageReference[] getUsageReferences(AssetInterface $asset)

Returns an array of usage reference objects.

Parameters

AssetInterface $asset

Return Value

UsageReference[]