You are here

public static function Heartbeat::parseMessage in Heartbeat 8

Parses a HeartbeatType message template and maps variable values onto matching keywords

Parameters

$translatedMessage:

$variables:

Return value

string

File

src/Entity/Heartbeat.php, line 786

Class

Heartbeat

Namespace

Drupal\heartbeat\Entity

Code

public static function parseMessage($translatedMessage, $variables) {
  return strtr($translatedMessage, $variables);
}