Move spambot_last_checked_uid from config to state (it protects cex, cim).
File
-
./
spambot.install, line 93
Code
function spambot_update_8002() {
/* @var \Drupal\Core\Config\Config $configuration */
$configuration = \Drupal::service('config.factory')->getEditable('spambot.settings');
// Move from configuration to state.
$uid = $configuration->get('spambot_last_checked_uid');
\Drupal::state()->set('spambot_last_checked_uid', $uid);
// Drop from configuration.
$configuration->clear('spambot_last_checked_uid');
$configuration->save();
}