You are here

function _apigee_edge_set_sync_in_progress in Apigee Edge 8

Indicates that the developer-user synchronization is in progress.

If the developer-user synchronization is in progress, then saving the same developer in apigee_edge_user_presave() while creating Drupal user based on a developer should be avoided.

Parameters

bool|null $in_progress: Developer-user synchronization state.

Return value

bool TRUE if the developer-user synchronization is in progress, else FALSE.

4 calls to _apigee_edge_set_sync_in_progress()
ApigeeEdgeFunctionalTestTrait::disableUserPresave in tests/src/Traits/ApigeeEdgeFunctionalTestTrait.php
The corresponding developer will not be created if a Drupal user is saved.
ApigeeEdgeFunctionalTestTrait::enableUserPresave in tests/src/Traits/ApigeeEdgeFunctionalTestTrait.php
The corresponding developer will be created if a Drupal user is saved.
UserCreateUpdate::executeRequest in src/Job/UserCreateUpdate.php
Executes the request itself.
_apigee_edge_is_sync_in_progress in ./apigee_edge.module
Gets the developer synchronization state.

File

./apigee_edge.module, line 1779
Copyright 2018 Google Inc.

Code

function _apigee_edge_set_sync_in_progress(?bool $in_progress = NULL) : bool {
  static $state;
  if ($in_progress !== NULL) {
    $state = $in_progress;
  }
  return $state ?? FALSE;
}