• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ui/webpack/form.php
  • Класс: Bitrix\Crm\UI\Webpack\Form
  • Вызов: Form::getCallParameter
protected function getCallParameter()
{
	if (!$this->form)
	{
		$this->form = new WebForm\Form($this->getId());
	}

	$formOptions = (new WebForm\Embed\Config($this->form))->toArray();
	$formOptions = $this->additionalOptions + $formOptions;
	$formOptions['data'] = $this->additionalFormOptions + $formOptions['data'];

	$parameter = [
		'form' => $formOptions,
		'resources' => [
			'app' => Form\App::instance()->getEmbeddedFileUrl(),
			'polyfill' => Form\Polyfill::instance()->getEmbeddedFileUrl(),
		]
	];

	return $parameter;
}