• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/timeline/timelineentry/facade.php
  • Класс: Bitrix\Crm\Timeline\TimelineEntry\Facade
  • Вызов: Facade::create
public function create(string $entryType, array $params): int
{
	if (!is_a($entryType, TimelineEntry::class, true))
	{
		throw new ArgumentException(
			'Invalid timeline entry type. Please, use class constants of ' . static::class,
			'entryType'
		);
	}

	/** @var string|TimelineEntry $entryType */
	return $entryType::create($params);
}