Technical requirements
This chapter will require a custom module that is not installed. Drupal will not register a new entity type or update entity types automatically for already-installed modules. The There’s more… section of the recipes will explain how to install or update entity types for already-installed modules.
In the following recipes, the module name is mymodule
. Replace instances of mymodule
with your module name as appropriate in your code. You can find the full code used in this chapter on GitHub: https://github.com/PacktPublishing/Drupal-10-Development-Cookbook/tree/main/chp09.