You are here

public function FormHelper::__construct in Entity Share 8.3

JsonapiHelper constructor.

Parameters

\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\Language\LanguageManagerInterface $language_manager: The language manager.

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

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

File

modules/entity_share_client/src/Service/FormHelper.php, line 103

Class

FormHelper
Service to extract code out of the PullForm.

Namespace

Drupal\entity_share_client\Service

Code

public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, StateInformationInterface $state_information, ModuleHandlerInterface $module_handler) {
  $this->resourceTypeRepository = $resource_type_repository;
  $this->bundleInfos = $entity_type_bundle_info
    ->getAllBundleInfo();
  $this->entityDefinitions = $entity_type_manager
    ->getDefinitions();
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
  $this->stateInformation = $state_information;
  $this->moduleHandler = $module_handler;
}