• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/retargeting/services/audiencegoogle.php
  • Класс: BitrixSeoRetargetingServicesAudienceGoogle
  • Вызов: AudienceGoogle::prepareContacts
protected function prepareContacts(array $contacts = array(), $type = null)
{
	if ($type && isset($contacts[$type]))
	{
		return $contacts[$type];
	}

	$data = array();
	foreach (static::$listRowMap['SUPPORTED_CONTACT_TYPES'] as $contactType)
	{
		if (!isset($contacts[$contactType]) || !is_array($contacts[$contactType]))
		{
			continue;
		}

		$data = $contacts[$contactType];
	}

	return $data;
}