• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/History/ActionFactory.php
  • Класс: BitrixLandingHistoryActionFactory
  • Вызов: ActionFactory::compareSteps
static function compareSteps(array $prevStep, array $nextStep): bool
{
	if (
		$prevStep['ENTITY_TYPE'] === $nextStep['ENTITY_TYPE']
		&& $prevStep['ENTITY_ID'] === $nextStep['ENTITY_ID']
		&& $prevStep['ACTION'] === $nextStep['ACTION']
	)
	{
		$class = self::getActionClass($prevStep['ACTION']);
		if ($class && is_callable([$class, self::COMPARE_METHOD]))
		{
			return call_user_func(
				[$class, self::COMPARE_METHOD],
				$prevStep['ACTION_PARAMS'],
				$nextStep['ACTION_PARAMS']
			);
		}
	}

	return false;
}