TranslationHelper::createKeyHash()
\nn\t3::TranslationHelper()->createKeyHash($param = '');
Generates a unique hash from the key that is required to identify a text. Each text has the same key in all languages.
$translationHelper->createKeyHash( '12345' );
$translationHelper->createKeyHash( ['my', 'key', 'array'] );
Copied!
| @return string
Source Code
public function createKeyHash( $param = '' ) {
return md5(json_encode(['_'=>$param]));
}
Copied!