You are here

public function MediaService::loadFileData in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/Service/MediaService.php \Drupal\gutenberg\Service\MediaService::loadFileData()

Load file entity data.

Parameters

\Drupal\file\FileInterface $file: File entity instance.

Return value

mixed The file entity data.

Throws

\Exception

File

src/Service/MediaService.php, line 297

Class

MediaService
The media service class.

Namespace

Drupal\gutenberg\Service

Code

public function loadFileData(FileInterface $file) {
  return $this->entityDataProviderManager
    ->getData('file', $file);
}