You are here

module_builder_test_component_type.services.yml in Module Builder 8.3

tests/modules/module_builder_test_component_type/module_builder_test_component_type.services.yml

File

tests/modules/module_builder_test_component_type/module_builder_test_component_type.services.yml
View source
  1. services:
  2. # Replacement DCB service: switches the Generate class to one that showcases
  3. # different data formats to test the component form UI.
  4. module_builder_test_component_type.drupal_code_builder:
  5. decorates: module_builder.drupal_code_builder
  6. # Give this a lower priority than module_builder_devel.drupal_code_builder
  7. # so it decorates the service last, meaning that this replacement service is
  8. # the actual one that's in use when both this module and
  9. # module_builder_devel are enabled. This isn't the case in tests, but to
  10. # develop the tests it's useful to enable this module and use the form
  11. # manually.
  12. decoration_priority: -5
  13. class: Drupal\module_builder_test_component_type\TestDrupalCodeBuilder