You are here

function agreement_post_update_update_frequency_type in Agreement 3.0.x

Changes frequency type from "integer" to "float".

File

./agreement.post_update.php, line 26
Agreement module post-updates.

Code

function agreement_post_update_update_frequency_type(&$sandbox = NULL) {
  if (\Drupal::moduleHandler()
    ->moduleExists('agreement')) {
    \Drupal::classResolver(ConfigEntityUpdater::class)
      ->update($sandbox, 'agreement');
    return t('Updated all agreements');
  }
  return NULL;
}