Alter the entity type definitions.
Modules may implement this hook to alter the information that defines an entity type. All properties that are available in \Drupal\Core\Entity\EntityManager can be altered here.
Do not use this hook to add information to entity types. Use hook_entity_info() for that instead.
array $entity_info: An associative array of all entity type definitions, keyed by the entity type name. Passed by reference.
\Drupal\Core\Entity\EntityManager
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_entity_info_alter(&$entity_info) {
// Set the controller class for nodes to an alternate implementation of the
// Drupal\Core\Entity\EntityStorageControllerInterface interface.
$entity_info['node']['controller_class'] = 'Drupal\\mymodule\\MyCustomNodeStorageController';
}