public function MediaService::loadFileData in Gutenberg 8
Same name and namespace in other branches
- 8.2 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 282
Class
- MediaService
- The media service class.
Namespace
Drupal\gutenberg\ServiceCode
public function loadFileData(FileInterface $file) {
return $this->entityDataProviderManager
->getData('file', $file);
}