media.services.yml
Same filename in other branches
File
-
core/
modules/ media/ media.services.yml
View source
- parameters:
- media.resource_fetcher_timeout: 5
-
- services:
- _defaults:
- autoconfigure: true
- plugin.manager.media.source:
- class: Drupal\media\MediaSourceManager
- parent: default_plugin_manager
- media.oembed.url_resolver:
- class: Drupal\media\OEmbed\UrlResolver
- arguments: ['@media.oembed.provider_repository', '@media.oembed.resource_fetcher', '@http_client', '@module_handler', '@cache.default']
- Drupal\media\OEmbed\UrlResolverInterface: '@media.oembed.url_resolver'
- media.oembed.provider_repository:
- class: Drupal\media\OEmbed\ProviderRepository
- arguments: ['@http_client', '@config.factory', '@datetime.time', '@keyvalue', '@logger.factory']
- Drupal\media\OEmbed\ProviderRepositoryInterface: '@media.oembed.provider_repository'
- media.oembed.resource_fetcher:
- class: Drupal\media\OEmbed\ResourceFetcher
- arguments: ['@http_client', '@media.oembed.provider_repository', '@cache.default', '%media.resource_fetcher_timeout%']
- Drupal\media\OEmbed\ResourceFetcherInterface: '@media.oembed.resource_fetcher'
- media.oembed.iframe_url_helper:
- class: Drupal\media\IFrameUrlHelper
- arguments: ['@router.request_context', '@private_key']
- Drupal\media\IFrameUrlHelper: '@media.oembed.iframe_url_helper'
- media.config_subscriber:
- class: Drupal\media\EventSubscriber\MediaConfigSubscriber
- arguments: ['@router.builder', '@cache_tags.invalidator', '@entity_type.manager']
Services
Title | Deprecated | Summary |
---|---|---|
Drupal\media\IFrameUrlHelper | ||
Drupal\media\OEmbed\ProviderRepositoryInterface | ||
Drupal\media\OEmbed\ResourceFetcherInterface | ||
Drupal\media\OEmbed\UrlResolverInterface | ||
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 | |
_defaults |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.