• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Marketplace/Application/Entity.php
  • Класс: BitrixImV2MarketplaceApplicationEntity
  • Вызов: Entity::getContext
private function getContext(string $contextOption): array
{
	$userContextList = explode(';', trim($contextOption));
	if (in_array(Context::ALL, $userContextList, true))
	{
		return [mb_strtolower(Context::ALL)];
	}

	return array_map('mb_strtolower', $userContextList);
}