You are here

plugin_type_example.services.yml in Examples for Developers 8

plugin_type_example/plugin_type_example.services.yml

File

plugin_type_example/plugin_type_example.services.yml
View source
  1. # This declares the plugin manager to the service container. For background
  2. # information on the service container, see https://www.drupal.org/node/2133171.
  3. # Changes here require that the cache be cleared in order to have Drupal notice
  4. # them.
  5. services:
  6. # The machine name of the service. This is the string that must be passed to
  7. # Drupal::service() to get the instantiated plugin manager.
  8. plugin.manager.sandwich:
  9. # This tells the service container the name of our plugin manager class.
  10. class: Drupal\plugin_type_example\SandwichPluginManager
  11. parent: default_plugin_manager