function agreement_post_update_fix_translatable_schema in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 agreement.post_update.php \agreement_post_update_fix_translatable_schema()
Fixes translatable schema types from "string" to "label".
File
- ./
agreement.post_update.php, line 13 - Agreement module post-updates.
Code
function agreement_post_update_fix_translatable_schema(&$sandbox = NULL) {
if (\Drupal::moduleHandler()
->moduleExists('agreement')) {
// Saving each agreement should be enough.
\Drupal::classResolver(ConfigEntityUpdater::class)
->update($sandbox, 'agreement');
return t('Updated all agreements.');
}
return NULL;
}