media.services.yml

Same filename and directory in other branches
  1. 8.9.x core/modules/media/media.services.yml
  2. 10 core/modules/media/media.services.yml
  3. 11.x core/modules/media/media.services.yml
core/modules/media/media.services.yml

File

core/modules/media/media.services.yml

View source
  1. services:
  2. plugin.manager.media.source:
  3. class: Drupal\media\MediaSourceManager
  4. parent: default_plugin_manager
  5. access_check.media.revision:
  6. class: Drupal\media\Access\MediaRevisionAccessCheck
  7. arguments: ['@entity_type.manager']
  8. tags:
  9. - { name: access_check, applies_to: _access_media_revision }
  10. deprecated: The "%service_id%" service is deprecated. You should use the 'access_check.entity' service instead. See https://www.drupal.org/node/3161210
  11. media.oembed.url_resolver:
  12. class: Drupal\media\OEmbed\UrlResolver
  13. arguments: ['@media.oembed.provider_repository', '@media.oembed.resource_fetcher', '@http_client', '@module_handler', '@cache.default']
  14. media.oembed.provider_repository:
  15. class: Drupal\media\OEmbed\ProviderRepository
  16. arguments: ['@http_client', '@config.factory', '@datetime.time', '@keyvalue', '@logger.factory']
  17. media.oembed.resource_fetcher:
  18. class: Drupal\media\OEmbed\ResourceFetcher
  19. arguments: ['@http_client', '@media.oembed.provider_repository', '@cache.default']
  20. media.oembed.iframe_url_helper:
  21. class: Drupal\media\IFrameUrlHelper
  22. arguments: ['@router.request_context', '@private_key']
  23. media.config_subscriber:
  24. class: Drupal\media\EventSubscriber\MediaConfigSubscriber
  25. arguments: ['@router.builder', '@cache_tags.invalidator', '@entity_type.manager']
  26. tags:
  27. - { name: event_subscriber }

Services

Title Deprecated Summary
access_check.media.revision Drupal\media\Access\MediaRevisionAccessCheck
media.config_subscriber Drupal\media\EventSubscriber\MediaConfigSubscriber
media.oembed.iframe_url_helper Drupal\media\IFrameUrlHelper
media.oembed.provider_repository Drupal\media\OEmbed\ProviderRepository
media.oembed.resource_fetcher Drupal\media\OEmbed\ResourceFetcher
media.oembed.url_resolver Drupal\media\OEmbed\UrlResolver
plugin.manager.media.source Drupal\media\MediaSourceManager

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.