You are here

public function BaseField::__construct in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Synonyms/Provider/BaseField.php \Drupal\synonyms\Plugin\Synonyms\Provider\BaseField::__construct()

BaseField constructor.

Overrides AbstractProvider::__construct

File

src/Plugin/Synonyms/Provider/BaseField.php, line 62

Class

BaseField
Provide synonyms from base fields.

Namespace

Drupal\synonyms\Plugin\Synonyms\Provider

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, FieldTypeToSynonyms $field_type_to_synonyms, EntityTypeManagerInterface $entity_type_manager, Connection $database, ContainerInterface $container) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $container);
  $this->entityFieldManager = $entity_field_manager;
  $this->fieldTypeToSynonyms = $field_type_to_synonyms;
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
}