public function MediaTypeGuesser::__construct in Gutenberg 8
Same name and namespace in other branches
- 8.2 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\gutenbergCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, FileExtensionGuesserInterface $file_extension_guesser) {
$this->entityTypeManager = $entity_type_manager;
$this->fileExtensionGuesser = $file_extension_guesser;
}