abstract class AbstractAssetUsageStrategy implements AssetUsageStrategyInterface (View source)

Abstract asset usage strategy

Methods

bool
isInUse(AssetInterface $asset)

Returns true if the asset is used.

int
getUsageCount(AssetInterface $asset)

Returns the total count of usages found.

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