getDefinition('contact_message'); // Recreate the original entity type definition, in order to notify the // manager of what changed. The change of storage backend will trigger // schema installation. // @see contact_storage_test_entity_type_alter() $original = clone $entity_type; $original->setStorageClass('Drupal\Core\Entity\ContentEntityNullStorage'); $entity_manager->onEntityTypeUpdate($entity_type, $original); }