• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/WebForm/Scenario/BaseScenario.php
  • Класс: Bitrix\Crm\Service\WebForm\Scenario\BaseScenario
  • Вызов: BaseScenario::prepare
public function prepare(array &$options): array
{
	$checkResult = $this->checkFields();
	if (!$checkResult['fieldsAdded'])
	{
		$this->addFields();
	}

	$title = $this->getTitle();

	if ($this->titleCreateDate)
	{
		$title = Loc::getMessage(
			'CRM_SERVICE_FORM_SCENARIO_NAME_TEMPLATE',
			[
				'#NAME#' => $title,
				'#DATE#' => FormatDate($this->culture->getDayMonthFormat(), new Date())
			]
		);
	}

	$options['name'] = $title;

	return $this->prepareBuilder->prepare($options);
}