Neos.Media/Classes/Domain/Service/AssetService.php
public function getUsageReferences(AssetInterface $asset)
    {
        $usages = [];
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            $usages = Arrays::arrayMergeRecursiveOverrule($usages, $strategy->getUsageReferences($asset));
        }

        return $usages;
    }
public function getUsageReferences(AssetInterface $asset)
    {
        $usages = [];
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            $usages = Arrays::arrayMergeRecursiveOverrule($usages, $strategy->getUsageReferences($asset));
        }

        return $usages;
    }
public function getUsageReferences ( AssetInterface $ asset ) { $ usages = [ ] ; /** @var AssetUsageStrategyInterface $strategy */ foreach ( $ this -> getUsageStrategies ( ) as $ strategy ) { $ usages = Arrays :: arrayMergeRecursiveOverrule ( $ usages , $ strategy -> getUsageReferences ( $ asset ) ) ; } return $ usages ; }
Returns an array of asset usage references.

@param AssetInterface $asset
@return array<\Neos\Media\Domain\Model\Dto\UsageReference>
Returns an array of asset usage references .