public function FileEntityNormalizer::__construct in Better Normalizers 8
Constructs an ContentEntityNormalizer object.
Parameters
\Drupal\hal\LinkManager\LinkManagerInterface $link_manager: The hypermedia link manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
Overrides ContentEntityNormalizer::__construct
File
- src/
Normalizer/ FileEntityNormalizer.php, line 33
Class
- FileEntityNormalizer
- Normalizer for File entity.
Namespace
Drupal\better_normalizers\NormalizerCode
public function __construct(LinkManagerInterface $link_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, EntityTypeRepositoryInterface $entity_type_repository, EntityFieldManagerInterface $entity_field_manager, FileSystemInterface $file_system) {
parent::__construct($link_manager, $entity_type_manager, $module_handler, $entity_type_repository, $entity_field_manager);
$this->fileSystem = $file_system;
}