LeadSettings::getCrmTypeMenuItem

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. LeadSettings
  4. getCrmTypeMenuItem
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/settings/leadsettings.php
  • Класс: Bitrix\Crm\Settings\LeadSettings
  • Вызов: LeadSettings::getCrmTypeMenuItem
static function getCrmTypeMenuItem(bool $compatibleKeys = false): array
{
	$result = [
		'id' => self::CRM_TYPE_MENU_ITEM_ID,
		'text' => Main\Localization\Loc::getMessage('CRM_LEAD_SETTINGS_CRM_TYPE_MENU_ITEM'),
		'title' => Main\Localization\Loc::getMessage('CRM_LEAD_SETTINGS_CRM_TYPE_MENU_ITEM'),
		'onclick' => self::showCrmTypePopup(),
	];

	if ($compatibleKeys)
	{
		$result = array_change_key_case($result, CASE_UPPER);
	}

	return $result;
}

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