function _webform_update_webform_submission_storage_schema in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.inc \_webform_update_webform_submission_storage_schema()
Update webform submission storage schema.
See also
\Drupal\webform\WebformSubmissionStorageSchema
4 calls to _webform_update_webform_submission_storage_schema()
- WebformAdminConfigAdvancedForm::submitForm in src/
Form/ AdminConfig/ WebformAdminConfigAdvancedForm.php - Form submission handler.
- WebformCliService::drush_webform_repair in src/
Commands/ WebformCliService.php - webform_update_8032 in includes/
webform.install.update.inc - Issue #2854020: Provide a mechanism to log submission transactions.
- webform_update_8157 in includes/
webform.install.update.inc - Issue #3022398: Possible modification to update hook and/or documentation.
File
- includes/
webform.install.inc, line 333 - Webform install helper functions.
Code
function _webform_update_webform_submission_storage_schema() {
$manager = \Drupal::entityDefinitionUpdateManager();
if (!$manager
->getEntityType('webform_submission')) {
$type = \Drupal::entityTypeManager()
->getDefinition('webform_submission');
$manager
->installEntityType($type);
}
$manager
->updateEntityType($manager
->getEntityType('webform_submission'));
}