You are here

preview_link.services.yml in Preview Link 2.0.x

Same filename and directory in other branches
  1. 8 preview_link.services.yml
  2. 2.x preview_link.services.yml

File

preview_link.services.yml
View source
  1. services:
  2. access_check.preview_link.canonical_rerouter:
  3. class: Drupal\preview_link\Access\PreviewLinkCanonicalRerouteAccessCheck
  4. arguments: ['@tempstore.private', '@preview_link.host', '@current_route_match']
  5. tags:
  6. - { name: access_check, applies_to: _access_preview_link_canonical_rerouter }
  7. access_check.preview_link:
  8. class: Drupal\preview_link\Access\PreviewLinkAccessCheck
  9. arguments: ['@preview_link.host']
  10. tags:
  11. - { name: access_check, applies_to: _access_preview_link }
  12. access_check.preview_enabled:
  13. class: Drupal\preview_link\Access\PreviewEnabledAccessCheck
  14. arguments: ['@config.factory']
  15. tags:
  16. - { name: access_check, applies_to: _access_preview_enabled }
  17. access_check.preview_link.session_exists:
  18. class: Drupal\preview_link\Access\PreviewLinkSessionExistsAccessCheck
  19. arguments: ['@session_configuration']
  20. tags:
  21. - { name: access_check, applies_to: _access_preview_session_exists }
  22. cache_context.preview_link_route:
  23. class: Drupal\preview_link\PreviewLinkCacheContext
  24. arguments: ['@current_route_match']
  25. tags:
  26. - { name: cache.context }
  27. preview_link.link_expiry:
  28. class: Drupal\preview_link\PreviewLinkExpiry
  29. arguments: ['@state']
  30. preview_link.host:
  31. class: Drupal\preview_link\PreviewLinkHost
  32. arguments: ['@entity_type.manager']
  33. preview_link.preview_link_rerouter:
  34. class: Drupal\preview_link\EventSubscriber\PreviewLinkRouteEventSubscriber
  35. arguments: ['@messenger', '@redirect.destination', '@string_translation', '@current_user', '@logger.channel.preview_link']
  36. tags:
  37. - { name: event_subscriber }
  38. preview_link.route_subscriber:
  39. class: Drupal\preview_link\Routing\PreviewLinkRoutes
  40. arguments: ['@entity_type.manager']
  41. tags:
  42. - { name: event_subscriber }
  43. logger.channel.preview_link:
  44. parent: logger.channel_base
  45. arguments: [ 'preview_link' ]