protected function MediaPdfThumbnailImageManager::getFileEntity in Media PDF Thumbnail 8.4
Same name and namespace in other branches
- 8.3 src/Manager/MediaPdfThumbnailImageManager.php \Drupal\media_pdf_thumbnail\Manager\MediaPdfThumbnailImageManager::getFileEntity()
Parameters
$fid:
Return value
\Drupal\Core\Entity\EntityInterface|null
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to MediaPdfThumbnailImageManager::getFileEntity()
File
- src/
Manager/ MediaPdfThumbnailImageManager.php, line 123
Class
- MediaPdfThumbnailImageManager
- Class MediaPdfThumbnailImageManager.
Namespace
Drupal\media_pdf_thumbnail\ManagerCode
protected function getFileEntity($fid) {
return $this->entityTypeManager
->getStorage('file')
->load($fid);
}