You are here

public function JsonapiHelper::__construct in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/src/Service/JsonapiHelper.php \Drupal\entity_share_client\Service\JsonapiHelper::__construct()
  2. 8 modules/entity_share_client/src/Service/JsonapiHelper.php \Drupal\entity_share_client\Service\JsonapiHelper::__construct()

JsonapiHelper constructor.

Parameters

\Symfony\Component\Serializer\SerializerInterface $serializer: A serializer.

\Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer $jsonapi_document_top_level_normalizer: The JsonApiDocumentTopLevelNormalizer normalizer.

\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The resource type repository.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

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

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\entity_share_client\Service\RemoteManagerInterface $remote_manager: The remote manager service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

\Drupal\entity_share_client\Service\RequestServiceInterface $request_service: The request service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\entity_share_client\Service\StateInformationInterface $state_information: The state information service.

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

\Drupal\Core\File\FileSystemInterface $fileSystem: The file system.

File

modules/entity_share_client/src/Service/JsonapiHelper.php, line 223

Class

JsonapiHelper
Class JsonapiHelper.

Namespace

Drupal\entity_share_client\Service

Code

public function __construct(SerializerInterface $serializer, JsonApiDocumentTopLevelNormalizer $jsonapi_document_top_level_normalizer, ResourceTypeRepositoryInterface $resource_type_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, StreamWrapperManagerInterface $stream_wrapper_manager, LanguageManagerInterface $language_manager, RemoteManagerInterface $remote_manager, EventDispatcherInterface $event_dispatcher, RequestServiceInterface $request_service, MessengerInterface $messenger, LoggerInterface $logger, StateInformationInterface $state_information, ModuleHandlerInterface $module_handler, FileSystemInterface $fileSystem) {
  $this->jsonapiDocumentTopLevelNormalizer = $jsonapi_document_top_level_normalizer;
  $this->jsonapiDocumentTopLevelNormalizer
    ->setSerializer($serializer);
  $this->resourceTypeRepository = $resource_type_repository;
  $this->bundleInfos = $entity_type_bundle_info
    ->getAllBundleInfo();
  $this->entityDefinitions = $entity_type_manager
    ->getDefinitions();
  $this->entityTypeManager = $entity_type_manager;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->languageManager = $language_manager;
  $this->remoteManager = $remote_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->requestService = $request_service;
  $this->messenger = $messenger;
  $this->logger = $logger;
  $this->stateInformation = $state_information;
  $this->moduleHandler = $module_handler;
  $this->fileSystem = $fileSystem;
  $this->importedEntities = [];
}