Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / contact / tests / modules / contact_storage_test / contact_storage_test.install
1 <?php
2
3 /**
4  * @file
5  * Contains install and update hooks.
6  */
7
8 /**
9  * Implements hook_install().
10  */
11 function contact_storage_test_install() {
12   $entity_manager = \Drupal::entityManager();
13   $entity_type = $entity_manager->getDefinition('contact_message');
14
15   // Recreate the original entity type definition, in order to notify the
16   // manager of what changed. The change of storage backend will trigger
17   // schema installation.
18   // @see contact_storage_test_entity_type_alter()
19   $original = clone $entity_type;
20   $original->setStorageClass('Drupal\Core\Entity\ContentEntityNullStorage');
21
22   $entity_manager->onEntityTypeUpdate($entity_type, $original);
23 }