Neos.Media/Classes/Domain/Service/AssetService.php
public function isInUse(AssetInterface $asset)
    {
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            if ($strategy->isInUse($asset) === true) {
                return true;
            }
        }

        return false;
    }
public function isInUse(AssetInterface $asset)
    {
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            if ($strategy->isInUse($asset) === true) {
                return true;
            }
        }

        return false;
    }
public function isInUse ( AssetInterface $ asset ) { /** @var AssetUsageStrategyInterface $strategy */ foreach ( $ this -> getUsageStrategies ( ) as $ strategy ) { if ( $ strategy -> isInUse ( $ asset ) === true ) { return true ; } } return false ; }
Returns true if the asset is used.

@param AssetInterface $asset
@return boolean
Returns true if the asset is used .