services:
  social_group_flexible_group_access.group.permission:
    class: 'Drupal\social_group_flexible_group\Access\FlexibleGroupContentAccessCheck'
    tags:
      - { name: 'access_check', applies_to: '_flexible_group_content_visibility', priority: -99 }
  social_group_flexible_group_access.flexible_group.permission:
    class: 'Drupal\social_group_flexible_group\Access\FlexibleGroupJoinPermissionAccessCheck'
    tags:
      - { name: 'access_check', applies_to: '_flexible_group_join_permission', priority: -99 }

  social_group_flexible_group_access.route_subscriber:
    class: Drupal\social_group_flexible_group\Subscriber\Route
    tags:
      - { name: event_subscriber }

  social_group_flexible_group.config_override:
    class: Drupal\social_group_flexible_group\SocialGroupFlexibleGroupConfigOverride
    arguments: ['@config.factory']
    tags:
      - { name: config.factory.override, priority: 10 }

  social_group_flexible_group.redirect_subscriber:
    class: Drupal\social_group_flexible_group\EventSubscriber\RedirectSubscriber
    arguments: ['@current_user', '@current_route_match']
    tags:
      - { name: event_subscriber }

  social_group_flexible_group.translation_defaults:
    class: Drupal\social_group_flexible_group\ContentTranslationDefaultsConfigOverride
    tags:
      - { name: config.factory.override, priority: 5 }
      - { name: social_language_defaults }
