You are here

public function EntityReferenceField::__construct in Synonyms 8

Same name in this branch
  1. 8 src/Plugin/Derivative/EntityReferenceField.php \Drupal\synonyms\Plugin\Derivative\EntityReferenceField::__construct()
  2. 8 src/Plugin/Synonyms/Provider/EntityReferenceField.php \Drupal\synonyms\Plugin\Synonyms\Provider\EntityReferenceField::__construct()
Same name and namespace in other branches
  1. 2.0.x src/Plugin/Derivative/EntityReferenceField.php \Drupal\synonyms\Plugin\Derivative\EntityReferenceField::__construct()

EntityReferenceField constructor.

File

src/Plugin/Derivative/EntityReferenceField.php, line 53

Class

EntityReferenceField
Derivative for entity_reference synonyms provider plugin.

Namespace

Drupal\synonyms\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, BehaviorService $behavior_service, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->behaviorService = $behavior_service;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityFieldManager = $entity_field_manager;
}