function webform_update_8119 in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.update.inc \webform_update_8119()
Issue #2957002: Same webform multiple times on the same page.
File
- includes/
webform.install.update.inc, line 2197 - Archived Webform update hooks.
Code
function webform_update_8119() {
// Issue #2863986: Allow updating modules with new service dependencies.
\Drupal::service('kernel')
->rebuildContainer();
// Issue #2982273: Route "webform.config.libraries" does not exist.
\Drupal::service('router.builder')
->rebuild();
/** @var \Drupal\webform\WebformHelpManagerInterface $help_manager */
$help_manager = \Drupal::service('webform.help_manager');
$help_manager
->addNotification('webform_update_8119', t("<strong>ATTENTION DEVELOPERS!!!</strong> The webform submission form's BASE_FORM_ID and FORM_ID have changed.") . '<br/>' . t('Please make sure to update all webform related <code>hook_form_BASE_FORM_ID_alter()</code> and <code>hook_form_FORM_ID_alter()</code> hooks.') . ' ' . t('<a href=":href">Learn more</a>', [
':href' => 'https://www.drupal.org/node/2959264',
]), 'warning');
}