synonyms.services.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. services:
  2. plugin.manager.synonyms_provider:
  3. class: Drupal\synonyms\SynonymsProviderPluginManager
  4. parent: default_plugin_manager
  5. synonyms.behaviors:
  6. class: Drupal\synonyms\SynonymsService\BehaviorService
  7. tags:
  8. - { name: service_collector, tag: synonyms_behavior, call: addBehaviorService }
  9. arguments: [ '@entity_type.manager' ]
  10. synonyms.provider.field_type_to_synonyms:
  11. class: Drupal\synonyms\SynonymsService\FieldTypeToSynonyms
  12. arguments: [ '@module_handler' ]
  13. synonyms.synonyms_find:
  14. class: Drupal\synonyms\SynonymsService\SynonymsFind
  15. arguments: [ '@synonyms.behaviors', '@entity_type.bundle.info' ]
  16. synonyms.synonyms_entity_get:
  17. class: Drupal\synonyms\SynonymsService\EntityGet
  18. arguments: [ '@synonyms.synonyms_find', '@entity_type.manager', '@entity.query' ]
  19. synonyms.behavior.autocomplete:
  20. class: Drupal\synonyms\SynonymsService\Behavior\AutocompleteService
  21. arguments: [ '@keyvalue', '@plugin.manager.entity_reference_selection', '@synonyms.behaviors', '@database', '@entity_type.manager', '@renderer' ]
  22. tags:
  23. - { name: synonyms_behavior }
  24. synonyms.behavior.select:
  25. class: Drupal\synonyms\SynonymsService\Behavior\SelectService
  26. arguments: [ '@synonyms.behaviors', '@renderer' ]
  27. tags:
  28. - { name: synonyms_behavior }
  29. synonyms.param_converter.entity_type:
  30. class: Drupal\synonyms\ParamConverter\EntityTypeParamConverter
  31. tags:
  32. - { name: paramconverter }
  33. arguments: [ '@entity_type.manager' ]
  34. synonyms.param_converter.synonyms_behavior:
  35. class: Drupal\synonyms\ParamConverter\SynonymsBehaviorServiceParamConverter
  36. tags:
  37. - { name: paramconverter }
  38. arguments: [ '@synonyms.behaviors' ]