• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/yandex/toloka/messagetoloka.php
  • Класс: Bitrix\Sender\Integration\Yandex\Toloka\MessageToloka
  • Вызов: MessageToloka::loadConfiguration
public function loadConfiguration($id = null)
{
	if (!$this->configuration->hasOptions())
	{
		$this->setConfigurationOptions();
	}
	//
	$self = $this;
	$filterParams = $this->configuration->getOption('FILTER');

	if ($filterParams)
	{
		$filterParams->setView(
			function() use ($self)
			{
				ob_start();
				$GLOBALS['APPLICATION']->includeComponent(
					"bitrix:main.ui.filter",
					"",
					[
						"FILTER_ID"      => "toloka-filter-connector",
						"FILTER"         => $self->getUiFilterFields(),
						"FILTER_PRESETS" => [],
						"DISABLE_SEARCH" => true,
						"ENABLE_LABEL"   => true,
					]
				);

				return ob_get_clean();
			}
		);
	}

	Entity\Message::create()
		->setCode($this->getCode())
		->loadConfiguration($id, $this->configuration);

	return $this->configuration;
}