• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/WebForm/Scenario/BaseScenario.php
  • Класс: Bitrix\Crm\Service\WebForm\Scenario\BaseScenario
  • Вызов: BaseScenario::getConfiguration
public function getConfiguration(): array
{
	$scenario = [];

	$scenario['id'] = $this->getId();
	$scenario['title'] = $this->getTitle();
	$scenario['description'] = $this->getDescription();

	if ($this->getCategory())
	{
		$scenario['category'] = $this->getCategory();
	}

	if ($this->getIcon())
	{
		$scenario['icon'] = $this->getIcon();
	}

	if ($this->getMenuItems())
	{
		$scenario['items'] = $this->getMenuItems();
	}

	if ($this->getExpertModeMenuItems())
	{
		$scenario['expertModeItems'] = $this->getExpertModeMenuItems();
	}

	if ($this->getDefaultSection())
	{
		$scenario['defaultSection'] = $this->getDefaultSection();
	}

	if ($this->isSoon())
	{
		$scenario['soon'] = $this->isSoon();
	}

	if (!$this->isActive())
	{
		$scenario['disabled'] = $this->isActive();
	}

	$scenario['openable'] = $this->isOpenable();

	if ($this->getActions())
	{
		$scenario['actions'] = $this->getActions();
	}

	if ($this->getActions())
	{
		$scenario['payment'] = $this->getActions();
	}

	return $scenario;
}