• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/service/loggerservice.php
  • Класс: BitrixLocationInfrastructureServiceLoggerService
  • Вызов: LoggerService::interpolate
private function interpolate($message, array $context = array())
{
	$replace = [];

	foreach ($context as $key => $val)
	{
		if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString')))
		{
			$replace['{' . $key . '}'] = $val;
		}
	}

	return strtr($message, $replace);
}