book.services.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. services:
  2. book.breadcrumb:
  3. class: Drupal\book\BookBreadcrumbBuilder
  4. arguments: ['@entity.manager', '@current_user']
  5. tags:
  6. - { name: breadcrumb_builder, priority: 701 }
  7. book.manager:
  8. class: Drupal\book\BookManager
  9. arguments: ['@entity.manager', '@string_translation', '@config.factory', '@book.outline_storage', '@renderer']
  10. book.outline:
  11. class: Drupal\book\BookOutline
  12. arguments: ['@book.manager']
  13. book.export:
  14. class: Drupal\book\BookExport
  15. arguments: ['@entity.manager', '@book.manager', '@renderer']
  16. book.outline_storage:
  17. class: Drupal\book\BookOutlineStorage
  18. arguments: ['@database']
  19. tags:
  20. - { name: backend_overridable }
  21. access_check.book.removable:
  22. class: Drupal\book\Access\BookNodeIsRemovableAccessCheck
  23. arguments: ['@book.manager']
  24. tags:
  25. - { name: access_check, applies_to: _access_book_removable }
  26. cache_context.route.book_navigation:
  27. class: Drupal\book\Cache\BookNavigationCacheContext
  28. arguments: ['@request_stack']
  29. calls:
  30. - [setContainer, ['@service_container']]
  31. tags:
  32. - { name: cache.context}
  33. book.uninstall_validator:
  34. class: Drupal\book\BookUninstallValidator
  35. tags:
  36. - { name: module_install.uninstall_validator }
  37. arguments: ['@book.outline_storage', '@entity_type.manager', '@string_translation']
  38. lazy: true