History::getJsStack

  1. Bitrix24 API (v. 23.675.0)
  2. landing
  3. History
  4. getJsStack
  • Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/history.php
  • Класс: BitrixLandingHistory
  • Вызов: History::getJsStack
public function getJsStack(): array
{
	$result = [];
	foreach ($this->stack as $step => $stackItem)
	{
		$actionClass = ActionFactory::getActionClass($stackItem['ACTION']);
		$result[$step] =
			(is_callable([$actionClass, 'getJsCommandName']))
				? call_user_func([$actionClass, 'getJsCommandName'])
				: [];
	}

	return $result;
}

Добавить комментарий