protected function UltimenuManager::getShortenedHash in Ultimenu 8
Gets the shortened hash of a menu item key.
Parameters
string $key: The menu item key.
Return value
string The shortened hash.
2 calls to UltimenuManager::getShortenedHash()
- UltimenuManager::buildMenuTree in src/
UltimenuManager.php - Build the menu to contain Ultimenu regions.
- UltimenuManager::getRegionKey in src/
UltimenuManager.php - Gets the region key.
File
- src/
UltimenuManager.php, line 268
Class
- UltimenuManager
- Manages Ultimenu plugin.
Namespace
Drupal\ultimenuCode
protected function getShortenedHash($key) {
return substr(sha1($key), 0, 8);
}