You are here

service plugin.manager.sandwich in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 plugin_type_example/plugin_type_example.services.yml \plugin.manager.sandwich

Class

Drupal\plugin_type_example\SandwichPluginManager
2 string references to plugin.manager.sandwich
PluginTypeExampleController::create in modules/plugin_type_example/src/Controller/PluginTypeExampleController.php
Override the parent method so that we can inject our sandwich plugin manager service into the controller.
PluginTypeExampleTest::testPluginExample in modules/plugin_type_example/tests/src/Functional/PluginTypeExampleTest.php
Test the plugin manager can be loaded, and the plugins are registered.

File

modules/plugin_type_example/plugin_type_example.services.yml
modules/plugin_type_example/plugin_type_example.services.yml

View source
  1. class: Drupal\plugin_type_example\SandwichPluginManager
  2. parent: default_plugin_manager