You are here

gutenberg.services.yml in Gutenberg 8

Same filename and directory in other branches
  1. 8.2 gutenberg.services.yml

File

gutenberg.services.yml
View source
  1. services:
  2. plugin.manager.gutenberg.plugin:
  3. class: Drupal\gutenberg\GutenbergPluginManager
  4. parent: default_plugin_manager
  5. gutenberg.blocks_renderer:
  6. class: Drupal\gutenberg\BlocksRendererHelper
  7. arguments: ['@renderer', '@plugin.manager.block', '@current_user']
  8. gutenberg.media_entity.renderer:
  9. class: Drupal\gutenberg\MediaEntityRenderer
  10. arguments: ['@renderer', '@entity_type.manager']
  11. gutenberg.media_library.opener:
  12. class: Drupal\gutenberg\MediaLibraryGutenbergOpener
  13. gutenberg.media_type.guesser:
  14. class: Drupal\gutenberg\MediaTypeGuesser
  15. arguments: ['@entity_type.manager', '@gutenberg.file_extension_guesser']
  16. gutenberg.media_type.persistence_manager:
  17. class: Drupal\gutenberg\Persistence\MediaTypePersistenceManager
  18. arguments: ['@entity_type.manager', '@current_user']
  19. gutenberg.media_uploader:
  20. class: Drupal\gutenberg\MediaUploader
  21. arguments: ['@file_system']
  22. gutenberg.entity_type.data_provider_manager:
  23. class: Drupal\gutenberg\DataProvider\EntityDataProviderManager
  24. tags:
  25. - { name: service_collector, tag: entity_type_data_provider, call: registerDataProvider }
  26. gutenberg.entity_type.data_provider.media:
  27. class: Drupal\gutenberg\DataProvider\MediaEntityDataProvider
  28. arguments: ['@entity_type.manager', '@database', '@image.factory']
  29. tags:
  30. - { name: entity_type_data_provider, entity_type: media }
  31. gutenberg.entity_type.data_provider.file:
  32. class: Drupal\gutenberg\DataProvider\FileEntityDataProvider
  33. arguments: ['@entity_type.manager', '@database', '@image.factory']
  34. tags:
  35. - { name: entity_type_data_provider, entity_type: file }
  36. gutenberg.file_extension_guesser:
  37. class: Drupal\gutenberg\FileExtensionGuesser
  38. arguments: ['@module_handler']
  39. gutenberg.media_service:
  40. class: Drupal\gutenberg\Service\MediaService
  41. arguments: ['@gutenberg.media_type.guesser', '@entity_type.manager', '@gutenberg.media_type.persistence_manager', '@gutenberg.entity_type.data_provider_manager', '@module_handler', '@gutenberg.media_uploader', '@renderer', '@entity_type.bundle.info', '@gutenberg.media_entity.renderer', '@database', '@entity_display.repository']
  42. gutenberg.media_library.ui_builder:
  43. class: Drupal\gutenberg\GutenbergMediaLibraryUiBuilder
  44. arguments: ['@entity_type.manager', '@request_stack', '@views.executable', '@form_builder', '@?media_library.opener_resolver']
  45. gutenberg.media_selection_processor_manager:
  46. class: Drupal\gutenberg\MediaSelectionProcessor\MediaSelectionProcessorManager
  47. arguments: []
  48. tags:
  49. - { name: service_collector, tag: media_selection_processor, call: registerProcessor }
  50. gutenberg.media_selection_processor.default:
  51. class: Drupal\gutenberg\MediaSelectionProcessor\DefaultMediaSelectionProcessor
  52. arguments: ['@entity_type.manager']
  53. tags:
  54. - { name: media_selection_processor, processor_name: default }