function contact_form_revisions_8000 in Config Entity Revisions 8.2
Implements hook_update().
File
- modules/
contact_form_revisions/ contact_form_revisions.install, line 38 - Install hooks for contact_form_revisions.
Code
function contact_form_revisions_8000(&$sandbox) {
$entityTypeManager = \Drupal::entityTypeManager();
$cert_storage = $entityTypeManager
->getStorage('config_entity_revisions_type');
$entity = $cert_storage
->create([
'id' => 'contact_form_revisions',
]);
$entity
->save();
}