public function Field::__construct in Synonyms 2.0.x
Same name in this branch
- 2.0.x src/Plugin/Derivative/Field.php \Drupal\synonyms\Plugin\Derivative\Field::__construct()
- 2.0.x src/Plugin/Synonyms/Provider/Field.php \Drupal\synonyms\Plugin\Synonyms\Provider\Field::__construct()
Same name and namespace in other branches
- 8 src/Plugin/Derivative/Field.php \Drupal\synonyms\Plugin\Derivative\Field::__construct()
Field constructor.
File
- src/
Plugin/ Derivative/ Field.php, line 50
Class
- Field
- Derivative for synonyms provider plugins.
Namespace
Drupal\synonyms\Plugin\DerivativeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, FieldTypeToSynonyms $field_type_to_synonyms) {
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->entityFieldManager = $entity_field_manager;
$this->fieldTypeToSynonyms = $field_type_to_synonyms;
}