/** * Constructs an FileEntityNormalizer object. * * @param \Drupal\Core\File\FileSystemInterface $file_system * The file system. */ public function __construct(LinkManagerInterface $link_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, FileSystemInterface $file_system) { $this->fileSystem = $file_system; parent::__construct($link_manager, $entity_manager, $module_handler); }
/** * Constructs a FileEntityNormalizer object. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \GuzzleHttp\ClientInterface $http_client * The HTTP Client. * @param \Drupal\rest\LinkManager\LinkManagerInterface $link_manager * The hypermedia link manager. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. */ public function __construct(EntityManagerInterface $entity_manager, ClientInterface $http_client, LinkManagerInterface $link_manager, ModuleHandlerInterface $module_handler) { parent::__construct($link_manager, $entity_manager, $module_handler); $this->httpClient = $http_client; }