• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/leadads/services/formfacebook.php
  • Класс: BitrixSeoLeadAdsServicesFormFacebook
  • Вызов: FormFacebook::getList
public function getList() : LeadAdsResponseFormResponse
{
	$paginator = new Paginator(
		$this->getRequest(),
		array(
			'methodName' => 'leadads.form.list',
			'parameters' => [
				'page_id' => $this->accountId,
				'fields' => [
					'privacy_policy_url',
					'id',
					'context_card',
					'name',
					'status',
					'thank_you_page',
					'follow_up_action_url',
					'tracking_parameters',
					'questions'
				],
				'params' => [
					'limit' => 50
				]
			]
		)
	);

	return new FormResponse(
		new FacebookFormBuilder($this::getFieldMapper()),
		...iterator_to_array($paginator)
	);
}