You are here

function _update_manager_unique_identifier in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/update/update.module \_update_manager_unique_identifier()
  2. 7 modules/update/update.module \_update_manager_unique_identifier()
  3. 9 core/modules/update/update.module \_update_manager_unique_identifier()

Returns a short unique identifier for this Drupal installation.

Return value

An eight character string uniquely identifying this Drupal installation.

2 calls to _update_manager_unique_identifier()
_update_manager_cache_directory in core/modules/update/update.module
Returns the directory where update archive files should be cached.
_update_manager_extract_directory in core/modules/update/update.module
Returns the directory where update archive files should be extracted.

File

core/modules/update/update.module, line 610
Handles updates of Drupal core and contributed projects.

Code

function _update_manager_unique_identifier() {
  static $id;
  if (!isset($id)) {
    $id = substr(hash('sha256', Settings::getHashSalt()), 0, 8);
  }
  return $id;
}