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

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
    public function isInUse(AssetInterface $asset)
    {
        return $this->getUsageReferences($asset) !== [];
    }
AbstractAssetUsageStrategy