concrete/src/Entity/Statistics/UsageTracker/FileUsageRepository.php
public function findByBlock($block)
    {
        if ($block instanceof Block) {
            $block = $block->getBlockID();
        } elseif ($block instanceof BlockController) {
            $block = $block->getBlockObject()->getBlockID();
        }

        return $this->findBy([
            'block_id' => $block
        ]);
    }
public function findByBlock($block)
    {
        if ($block instanceof Block) {
            $block = $block->getBlockID();
        } elseif ($block instanceof BlockController) {
            $block = $block->getBlockObject()->getBlockID();
        }

        return $this->findBy([
            'block_id' => $block
        ]);
    }
public function findByBlock ( $ block ) { if ( $ block instanceof Block ) { $ block = $ block -> getBlockID ( ) ; } elseif ( $ block instanceof BlockController ) { $ block = $ block -> getBlockObject ( ) -> getBlockID ( ) ; } return $ this -> findBy ( [ 'block_id' => $ block ] ) ; }
Find FileUsageRecords given a block
@param $block
@return \Concrete\Core\Entity\Statistics\UsageTracker\FileUsageRecord[]
Find FileUsageRecords given a block