function webform_update_8187 in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.update.inc \webform_update_8187()
Issue #3108266: Update external libraries. Display warning about InputMask.
File
- includes/
webform.install.update.inc, line 3514 - Archived Webform update hooks.
Code
function webform_update_8187() {
if (!file_exists(\Drupal::root() . '/libraries/jquery.inputmask/dist/jquery.inputmask.min.js')) {
/** @var \Drupal\webform\WebformHelpManagerInterface $help_manager */
$help_manager = \Drupal::service('webform.help_manager');
$help_manager
->addNotification('webform_update_8187', t('<strong>ATTENTION DEVELOPERS!!!</strong> Please make sure to download and update the <a href=":href">Input Mask</a> library to version 5.0.x', [
':href' => 'https://github.com/RobinHerbots/Inputmask',
]) . ' ' . t('<a href=":href">Learn more about updating the Webform module\'s external libraries</a>', [
':href' => 'https://www.drupal.org/docs/8/modules/webform/webform-libraries',
]), 'warning');
}
}