Skip to content
Snippets Groups Projects
Commit 1dbc8eea authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5954: adding enabling of password policy so that api enables correctly

parent 1d755ad8
No related branches found
No related tags found
No related merge requests found
......@@ -744,6 +744,17 @@ function uw_cfg_common_update_9107(&$sandbox) {
*/
function uw_cfg_common_update_9108(&$sandbox) {
// If the password policy is not enabled, enable it.
// There were errors with sites that were created before
// we enabled this module, and it did not have an update
// hook to enable it. If this is not here, the api fails
// on entity password policy.
if (!\Drupal::service('module_handler')->moduleExists('password_policy')) {
// Enable the password policy module.
\Drupal::service('module_installer')->install(['password_policy']);
}
// The query.
$query = \Drupal::entityQuery('node');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment