src/file/FileUsage/FileUsageTrait.php
public function getFileUsage() {
    if (empty($this->fileUsage)) {
      $this->fileUsage = \Drupal::service('file.usage');
    }
    return $this->fileUsage;
  }
public function getFileUsage() {
    if (empty($this->fileUsage)) {
      $this->fileUsage = \Drupal::service('file.usage');
    }
    return $this->fileUsage;
  }
public function getFileUsage ( ) { if ( empty ( $ this -> fileUsage ) ) { $ this -> fileUsage = \ Drupal :: service ( 'file.usage' ) ; } return $ this -> fileUsage ; }
Gets file usage service.

@return \Drupal\file\FileUsage\FileUsageInterface
File usage service.
Gets file usage service .