• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/component/loglist/processor.php
  • Класс: BitrixSocialnetworkComponentLogListProcessor
  • Вызов: Processor::processContentList
public function processContentList(&$result): void
{
	$contentIdList = [];
	if (is_array($result['Events']))
	{
		foreach ($result['Events'] as $key => $eventFields)
		{
			if ($contentId = LivefeedProvider::getContentId($eventFields))
			{
				$contentIdList[] = $result['Events'][$key]['CONTENT_ID'] = $contentId['ENTITY_TYPE'].'-'.$contentId['ENTITY_ID'];
			}
		}
	}

	$result['ContentViewData'] = (
		!empty($contentIdList)
			? BitrixSocialnetworkItemUserContentView::getViewData([
				'contentId' => $contentIdList
			])
			: []
	);
}