Plugin Managers for Drupal 8, Drupal 9

Last updated March 2, 2021
Module Development8.9.x/9.3.x

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