function field_post_update_save_custom_storage_property
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
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.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.