services:
  plugin.manager.content_block:
    class: Drupal\social_content_block\ContentBlockManager
    parent: default_plugin_manager

  plugin.manager.multiple_content_block:
    class: Drupal\social_content_block\Services\MultipleContentBlockManager
    parent: default_plugin_manager
    arguments:
      - '@entity_type.manager'

  social_content_block.override:
    class: Drupal\social_content_block\SocialContentBlockOverride
    arguments: ['@config.factory']
    tags:
      - { name: config.factory.override, priority: 5 }

  social_content_block.content_builder:
    class: Drupal\social_content_block\ContentBuilder
    arguments:
      - '@current_user'
      - '@entity_type.manager'
      - '@database'
      - '@string_translation'
      - '@language_manager'
      - '@plugin.manager.content_block'
      - '@entity.repository'
      - '@datetime.time'

  social_content_block.route_subscriber:
    class: Drupal\social_content_block\Routing\RouteSubscriber
    tags:
      - { name: 'event_subscriber' }

  social_content_block.translation_defaults:
    class: Drupal\social_content_block\ContentTranslationDefaultsConfigOverride
    arguments: ['@module_handler']
    tags:
      - { name: config.factory.override, priority: 5 }
      - { name: social_language_defaults }
