You are here

public function FileEntityNormalizer::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/hal/src/Normalizer/FileEntityNormalizer.php \Drupal\hal\Normalizer\FileEntityNormalizer::__construct()

Constructs a FileEntityNormalizer object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\GuzzleHttp\ClientInterface $http_client: The HTTP Client.

\Drupal\rest\LinkManager\LinkManagerInterface $link_manager: The hypermedia link manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides ContentEntityNormalizer::__construct

File

core/modules/hal/src/Normalizer/FileEntityNormalizer.php, line 46
Contains \Drupal\hal\Normalizer\FileEntityNormalizer.

Class

FileEntityNormalizer
Converts the Drupal entity object structure to a HAL array structure.

Namespace

Drupal\hal\Normalizer

Code

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;
}