You are here

protected function MediaPdfThumbnailImageManager::getFileEntity in Media PDF Thumbnail 8.4

Same name and namespace in other branches
  1. 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()
MediaPdfThumbnailImageManager::createThumbnail in src/Manager/MediaPdfThumbnailImageManager.php

File

src/Manager/MediaPdfThumbnailImageManager.php, line 123

Class

MediaPdfThumbnailImageManager
Class MediaPdfThumbnailImageManager.

Namespace

Drupal\media_pdf_thumbnail\Manager

Code

protected function getFileEntity($fid) {
  return $this->entityTypeManager
    ->getStorage('file')
    ->load($fid);
}