PHP Class Neos\Media\Domain\Strategy\AbstractAssetUsageStrategy

Inheritance: implements Neos\Media\Domain\Strategy\AssetUsageStrategyInterface
Show file Open project: neos/neos-development-collection

Public Methods

Method Description
getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer Returns the total count of usages found.
isInUse ( Neos\Media\Domain\Model\AssetInterface $asset ) : boolean Returns true if the asset is used.

Method Details

getUsageCount() public method

Returns the total count of usages found.
public getUsageCount ( Neos\Media\Domain\Model\AssetInterface $asset ) : integer
$asset Neos\Media\Domain\Model\AssetInterface
return integer

isInUse() public method

Returns true if the asset is used.
public isInUse ( Neos\Media\Domain\Model\AssetInterface $asset ) : boolean
$asset Neos\Media\Domain\Model\AssetInterface
return boolean