public function Field::__construct in Synonyms 8
Same name in this branch
- 8 src/Plugin/Derivative/Field.php \Drupal\synonyms\Plugin\Derivative\Field::__construct()
- 8 src/Plugin/Synonyms/Provider/Field.php \Drupal\synonyms\Plugin\Synonyms\Provider\Field::__construct()
Same name and namespace in other branches
- 2.0.x src/Plugin/Synonyms/Provider/Field.php \Drupal\synonyms\Plugin\Synonyms\Provider\Field::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides AbstractProvider::__construct
File
- src/
Plugin/ Synonyms/ Provider/ Field.php, line 66
Class
- Field
- Provide synonyms from attached simple fields.
Namespace
Drupal\synonyms\Plugin\Synonyms\ProviderCode
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;
}