Calculate the MD5 hash of an entity body
@codeCoverageIgnore
EntityBodyInterface $body Entity body to calculate the hash for:
bool $rawOutput Whether or not to use raw output:
bool $base64Encode Whether or not to base64 encode raw output (only if raw output is true):
bool|string Returns an MD5 string on success or FALSE on failure
This will be deprecated soon
public static function calculateMd5(EntityBodyInterface $body, $rawOutput = false, $base64Encode = false) {
return $body
->getContentMd5($rawOutput, $base64Encode);
}