public function EntityReferenceField::__construct in Synonyms 2.0.x
Same name in this branch
- 2.0.x src/Plugin/Derivative/EntityReferenceField.php \Drupal\synonyms\Plugin\Derivative\EntityReferenceField::__construct()
- 2.0.x src/Plugin/Synonyms/Provider/EntityReferenceField.php \Drupal\synonyms\Plugin\Synonyms\Provider\EntityReferenceField::__construct()
Same name and namespace in other branches
- 8 src/Plugin/Synonyms/Provider/EntityReferenceField.php \Drupal\synonyms\Plugin\Synonyms\Provider\EntityReferenceField::__construct()
EntityReferenceField constructor.
Overrides AbstractProvider::__construct
File
- src/
Plugin/ Synonyms/ Provider/ EntityReferenceField.php, line 51
Class
- EntityReferenceField
- Provide synonyms from entity reference field type.
Namespace
Drupal\synonyms\Plugin\Synonyms\ProviderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, Connection $database, ContainerInterface $container) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $container);
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeManager = $entity_type_manager;
$this->database = $database;
}