• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/sender/mail/messagemail.php
  • Класс: Bitrix\Sender\Integration\Sender\Mail\MessageMail
  • Вызов: MessageMail::getTemplate
protected function getTemplate()
{
	if (!$this->configuration->get('TEMPLATE_TYPE') || !$this->configuration->get('TEMPLATE_ID'))
	{
		return null;
	}

	return Templates\Selector::create()
		->withMessageCode(static::CODE)
		->withTypeId($this->configuration->get('TEMPLATE_TYPE'))
		->withId($this->configuration->get('TEMPLATE_ID'))
		->get();
}