Module Development

Plugin Managers for Drupal 8, 9, 10, and 11

A plugin manager is responsible for both the definition of a new plugin type, and for listing and instantiating instances of plugins of the defined type.

In this tutorial we'll:

  • Define what a plugin manager is.
  • Create a list of all plugins of a specific type.
  • Load and instantiate specific plugin instances, so we can use them in our code.