Plugin Managers for Drupal 9 and Drupal 8

Last updated September 8, 2020
Module Development8.9.x/9.0.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