You are here

public function EntityReferenceHelper::__construct in Entity Share 8.3

Class constructor.

Parameters

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

File

modules/entity_share_client/src/Service/EntityReferenceHelper.php, line 29

Class

EntityReferenceHelper
Provides helper functions related to Entity reference fields.

Namespace

Drupal\entity_share_client\Service

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityDefinitions = $entity_type_manager
    ->getDefinitions();
}