You are here

private function ResponsiveFaviconsAdmin::uniqueIdentifier in Responsive Favicons 8

Returns a short unique identifier for this Drupal installation.

Return value

string An eight character string uniquely identifying this Drupal installation.

1 call to ResponsiveFaviconsAdmin::uniqueIdentifier()
ResponsiveFaviconsAdmin::extractDirectory in src/Form/ResponsiveFaviconsAdmin.php
Gets the directory where responsive favicons zip files should be extracted.

File

src/Form/ResponsiveFaviconsAdmin.php, line 268

Class

ResponsiveFaviconsAdmin
Class ResponsiveFaviconsAdmin.

Namespace

Drupal\responsive_favicons\Form

Code

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