You are here

function webform_update_8017 in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.install.update.inc \webform_update_8017()

Issue #2850455: Add lookup_keys to webform config entity. Update Webform lookup keys.

File

includes/webform.install.update.inc, line 361
Archived Webform update hooks.

Code

function webform_update_8017() {

  // Must resave all Webform config lookup keys.
  // @see \Drupal\Core\Config\Entity\Query\QueryFactory::updateConfigKeyStore
  $webforms = Webform::loadMultiple();
  foreach ($webforms as $webform) {
    $webform
      ->save();
  }
}