You are here

public static function Crypt::generateHash in Express 8

Generates a unique hash name.

Parameters

...: All arguments passed will be serialized and used to generate the hash.

Return value

string The generated hash identifier.

1 call to Crypt::generateHash()
Theme::fileScan in themes/contrib/bootstrap/src/Theme.php
Wrapper for the core file_scan_directory() function.

File

themes/contrib/bootstrap/src/Utility/Crypt.php, line 25
Contains \Drupal\bootstrap\Utility\Crypt.

Class

Crypt
Extends \Drupal\Component\Utility\Crypt.

Namespace

Drupal\bootstrap\Utility

Code

public static function generateHash() {
  $args = func_get_args();
  $hash = '';
  if (is_string($args[0])) {
    $hash = $args[0] . ':';
  }
  elseif (is_array($args[0])) {
    $hash = implode(':', $args[0]) . ':';
  }
  $hash .= self::hashBase64(serialize($args));
  return $hash;
}