You are here

public static function TwigConvert::md5Value in Twig Tools 8

Returns the md5 hash value of a passed variable.

Parameters

mixed $value: The variable to get the md5 hash equivalent value of.

Return value

string The md5 string hash value of the variable.

File

src/TwigExtension/TwigConvert.php, line 93

Class

TwigConvert
Class TwigConvert.

Namespace

Drupal\twig_tools\TwigExtension

Code

public static function md5Value($value) {
  return md5(strval($value));
}