You are here

function workspace_update_8104 in Workspace 8

Populate the replication blocker key state variable.

File

./workspace.install, line 96
Install, update and uninstall functions for the workspace module.

Code

function workspace_update_8104() {
  $state = \Drupal::state();
  $replication_blocker_key = $state
    ->get('workspace.replication_blocker_key');
  if (!$replication_blocker_key) {
    $replication_blocker_key = Crypt::randomBytesBase64(55);
    $state
      ->set('workspace.replication_blocker_key', $replication_blocker_key);
  }
}