function entity_test_schema_converter_post_update_make_revisionable
Update entity_test_update to be revisionable.
File
-
core/
modules/ system/ tests/ modules/ entity_test_schema_converter/ entity_test_schema_converter.post_update.php, line 18
Code
function entity_test_schema_converter_post_update_make_revisionable(&$sandbox) {
$revisionableSchemaConverter = new SqlContentEntityStorageSchemaConverter('entity_test_update', \Drupal::entityTypeManager(), \Drupal::entityDefinitionUpdateManager(), \Drupal::service('entity.last_installed_schema.repository'), \Drupal::keyValue('entity.storage_schema.sql'), \Drupal::database());
$revisionableSchemaConverter->convertToRevisionable($sandbox, [
'test_single_property',
'test_multiple_properties',
'test_single_property_multiple_values',
'test_multiple_properties_multiple_values',
'test_entity_base_field_info',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.