Neos\Media\Domain\Strategy\AbstractAssetUsageStrategy::getUsageCount PHP Method

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
    public function getUsageCount(AssetInterface $asset)
    {
        return count($this->getUsageReferences($asset));
    }
AbstractAssetUsageStrategy