You are here

public static function Hash::siteIdentifier in Acquia Purge 8

Create a unique hash that identifies this site.

Parameters

string $site_name: The identifier of the site on Acquia Cloud.

string $site_path: The path of the site, e.g. 'site/default' or 'site/database_a'.

Return value

string Cryptographic hash that's long enough to be unique.

1 call to Hash::siteIdentifier()
PlatformInfo::__construct in src/AcquiaCloud/PlatformInfo.php
Constructs a PlatformInfo object.

File

src/AcquiaCloud/Hash.php, line 61

Class

Hash
Helper class that centralizes string hashing for security and maintenance.

Namespace

Drupal\acquia_purge\AcquiaCloud

Code

public static function siteIdentifier($site_name, $site_path) {
  return self::hashInput($site_name . $site_path, 16);
}