You are here

public function EntityGetBySynonym::__construct in Synonyms 8

EntityGetBySynonym constructor.

File

src/SynonymsService/EntityGetBySynonym.php, line 32

Class

EntityGetBySynonym
Service to look up an entity by its name or synonym.

Namespace

Drupal\synonyms\SynonymsService

Code

public function __construct(FindSynonyms $find_synonyms_service, EntityTypeManagerInterface $entity_type_manager) {
  $this->findSynonymsService = $find_synonyms_service;
  $this->entityTypeManager = $entity_type_manager;
}