W3cubDocs

/Drupal 8

function _update_manager_unique_identifier

_update_manager_unique_identifier()

Returns a short unique identifier for this Drupal installation.

Return value

An eight character string uniquely identifying this Drupal installation.

File

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

Code

function _update_manager_unique_identifier() {
  $id = &drupal_static(__FUNCTION__, '');
  if (empty($id)) {
    $id = substr(hash('sha256', Settings::getHashSalt()), 0, 8);
  }
  return $id;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!update!update.module/function/_update_manager_unique_identifier/8.1.x