Pantheon\Terminus\Exceptions\TerminusException::interpolateString PHP Method

interpolateString() protected method

Replace the variables into the message string.
protected interpolateString ( string $message, array $replacements ) : string
$message string The raw, uninterpolated message string
$replacements array The values to replace into the message
return string
    protected function interpolateString($message, $replacements)
    {
        $tr = [];
        foreach ($replacements as $key => $val) {
            $tr['{' . $key . '}'] = $val;
        }
        return strtr($message, $tr);
    }