You are here

public function MediaTypeGuesser::__construct in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/MediaTypeGuesser.php \Drupal\gutenberg\MediaTypeGuesser::__construct()

MediaTypeGuesser constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\gutenberg\FileExtensionGuesserInterface $file_extension_guesser: The file extension guesser.

File

src/MediaTypeGuesser.php, line 49

Class

MediaTypeGuesser
Guesses media type of the file.

Namespace

Drupal\gutenberg

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, FileExtensionGuesserInterface $file_extension_guesser) {
  $this->entityTypeManager = $entity_type_manager;
  $this->fileExtensionGuesser = $file_extension_guesser;
}