service_provider_test.services.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml
  2. 8.9.x core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml
  3. 10 core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml
core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml

File

core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml

View source
  1. services:
  2. _defaults:
  3. autoconfigure: true
  4. service_provider_test_class:
  5. class: Drupal\service_provider_test\TestClass
  6. tags:
  7. - { name: needs_destruction }
  8. arguments: ['@state']
  9. # Used to test destructable service order.
  10. service_provider_test_class_1:
  11. parent: service_provider_test_class
  12. tags:
  13. - { name: needs_destruction, priority: 50 }
  14. service_provider_test_class_2:
  15. parent: service_provider_test_class
  16. tags:
  17. - { name: needs_destruction, priority: -10 }
  18. service_provider_test_class_3:
  19. parent: service_provider_test_class
  20. tags:
  21. - { name: needs_destruction, priority: 0 }
  22. service_provider_test_class_4:
  23. parent: service_provider_test_class
  24. tags:
  25. - { name: needs_destruction, priority: -100 }
  26. service_provider_test_class_5:
  27. parent: service_provider_test_class
  28. tags:
  29. - { name: needs_destruction, priority: 100 }
  30. service_provider_test_class_6:
  31. parent: service_provider_test_class
  32. tags:
  33. - { name: needs_destruction, priority: -50 }

Services


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.