hook_entity_type_build(array &$entity_types)
Add to entity type definitions.
Modules may implement this hook to add information to defined entity types, as defined in \Drupal\Core\Entity\EntityTypeInterface.
To alter existing information or to add information dynamically, use hook_entity_type_alter().
Parameters
\Drupal\Core\Entity\EntityTypeInterface[] $entity_types: An associative array of all entity type definitions, keyed by the entity type name. Passed by reference.
See also
\Drupal\