2 * Implements hook_entity_type_alter().
4 function {{ machine_name }}_entity_type_alter(array &$entity_types) {
5 /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
6 // Set the controller class for nodes to an alternate implementation of the
7 // Drupal\Core\Entity\EntityStorageInterface interface.
8 $entity_types['node']->setStorageClass('Drupal\mymodule\MyCustomNodeStorage');