• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/timeline/icon.php
  • Класс: Bitrix\Crm\Controller\Timeline\Icon
  • Вызов: Icon::getAction
public function getAction(string $code): ?array
{
	$icon = $this->getIconDataByCode($code);

	if (!$icon)
	{
		$this->addError(new Error("Icon not found for code `$code`", ErrorCode::NOT_FOUND));
		return null;
	}

	return [
		'icon' => $icon,
	];
}