• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/Tasks/Comment.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\Tasks\Comment
  • Вызов: Comment::getContentBlocks
public function getContentBlocks(): ?array
{
	$model = $this->getAssociatedEntityModel();
	$task = $this->getTask($model);
	if (is_null($task))
	{
		return null;
	}

	$blocks = [
		'Task' => $this->getTaskBlock($model),
		'From' => $this->getFromBlock($model),
		'Updated' => $this->getUpdatedBlock($model, $task),
	];

	$files = $this->getFiles();

	if (!empty($files))
	{
		$blocks['Files'] = $this->getFilesBlock($files);
	}

	return $blocks;
}