
Drupal 9 Module Development
By :

In this chapter we got to implement some fun stuff. We created our very own content and configuration entity types as well as a custom plugin type to handle our logic.
What we built was a Product entity type that holds some product-like data in various types of fields. We even created a bundle configuration entity type so that we can have multiple types of products with the possibility of different fields per bundle—a great data model.
We wanted to be able to import products from all sorts of external resources. For this reason, we created the Importer plugin type, which is responsible for doing the actual imports—a great functional model. However, these plugins only work based on a set of configurations, which we represented via a configuration entity type. These can then be created in the UI and exported into YAML files like any other configuration.
Finally, to use the importers, we created a Drush command, which can process either a single Importer...