function thunder_update_8119 in Thunder 8.2
Enable redirect module.
File
- ./
thunder.install, line 812 - Install, update and uninstall functions for the thunder installation profile.
Code
function thunder_update_8119() {
/** @var \Drupal\update_helper\Updater $updater */
$updater = \Drupal::service('update_helper.updater');
if (!$updater
->executeUpdate('thunder', 'thunder__thunder_update_8119')) {
return $updater
->logger()
->output();
}
$role = Role::load('seo');
if ($role) {
$role
->grantPermission('administer redirects');
$role
->save();
}
// Output logged messages to related channel of update execution.
return $updater
->logger()
->output();
}