• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/Integration/UI/EntityEditor/PropertyProvider.php
  • Класс: BitrixIblockIntegrationUIEntityEditorPropertyProvider
  • Вызов: PropertyProvider::getPropertyTypeItems
private function getPropertyTypeItems(): array
{
	$result = [];

	$baseTypes = Property::getBaseTypeList(true);
	foreach ($baseTypes as $type => $name)
	{
		$result[] = [
			'NAME' => $name,
			'VALUE' => $type,
		];
	}

	$userTypes = CIBlockProperty::GetUserType();
	Collection::sortByColumn($userTypes, [
		'DESCRIPTION' => SORT_STRING,
	]);

	foreach ($userTypes as $type => $item)
	{
		$result[] = [
			'NAME' => $item['DESCRIPTION'],
			'VALUE' => "{$item['PROPERTY_TYPE']}:{$type}",
		];
	}

	return $result;
}