• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/sitebutton/preset.php
  • Класс: Bitrix\Crm\SiteButton\Preset
  • Вызов: Preset::getById
static function getById($xmlId)
{
	$presets = static::getList();
	foreach($presets as $preset)
	{
		if($preset['ID'] == $xmlId)
		{
			return $preset;
		}
	}

	return null;
}