function field_post_update_save_custom_storage_property in Drupal 8
Re-save all field storage config objects to add 'custom_storage' property.
1 string reference to 'field_post_update_save_custom_storage_property'
- UpdatePathRC1TestBaseTest::testDatabaseLoaded in core/
modules/ system/ tests/ src/ Functional/ Update/ UpdatePathRC1TestBaseTest.php - Tests that the database was properly loaded.
File
- core/
modules/ field/ field.post_update.php, line 16 - Post update functions for Field module.
Code
function field_post_update_save_custom_storage_property() {
foreach (FieldStorageConfig::loadMultiple() as $field_storage_config) {
$field_storage_config
->save();
}
return t('All field storage configuration objects re-saved.');
}