preview_link.services.yml in Preview Link 2.0.x
File
preview_link.services.yml
View source
- services:
- access_check.preview_link.canonical_rerouter:
- class: Drupal\preview_link\Access\PreviewLinkCanonicalRerouteAccessCheck
- arguments: ['@tempstore.private', '@preview_link.host', '@current_route_match']
- tags:
- - { name: access_check, applies_to: _access_preview_link_canonical_rerouter }
- access_check.preview_link:
- class: Drupal\preview_link\Access\PreviewLinkAccessCheck
- arguments: ['@preview_link.host']
- tags:
- - { name: access_check, applies_to: _access_preview_link }
- access_check.preview_enabled:
- class: Drupal\preview_link\Access\PreviewEnabledAccessCheck
- arguments: ['@config.factory']
- tags:
- - { name: access_check, applies_to: _access_preview_enabled }
- access_check.preview_link.session_exists:
- class: Drupal\preview_link\Access\PreviewLinkSessionExistsAccessCheck
- arguments: ['@session_configuration']
- tags:
- - { name: access_check, applies_to: _access_preview_session_exists }
- cache_context.preview_link_route:
- class: Drupal\preview_link\PreviewLinkCacheContext
- arguments: ['@current_route_match']
- tags:
- - { name: cache.context }
- preview_link.link_expiry:
- class: Drupal\preview_link\PreviewLinkExpiry
- arguments: ['@state']
- preview_link.host:
- class: Drupal\preview_link\PreviewLinkHost
- arguments: ['@entity_type.manager']
- preview_link.preview_link_rerouter:
- class: Drupal\preview_link\EventSubscriber\PreviewLinkRouteEventSubscriber
- arguments: ['@messenger', '@redirect.destination', '@string_translation', '@current_user', '@logger.channel.preview_link']
- tags:
- - { name: event_subscriber }
- preview_link.route_subscriber:
- class: Drupal\preview_link\Routing\PreviewLinkRoutes
- arguments: ['@entity_type.manager']
- tags:
- - { name: event_subscriber }
- logger.channel.preview_link:
- parent: logger.channel_base
- arguments: [ 'preview_link' ]