• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/SignDocument.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\SignDocument
  • Вызов: SignDocument::getSignersContentBlocks
protected function getSignersContentBlocks(): ?array
{
	$signers = $this->getDocumentData()->getSigners();
	if (empty($signers))
	{
		return null;
	}

	$line = [];

	foreach ($signers as $index => $signer)
	{
		$line[static::BLOCK_SIGNERS . '_' . $index] = (new Layout\Body\ContentBlock\ContentBlockWithTitle())
			->setInline(false)
			->setTitle(
				Loc::getMessage('CRM_SERVICE_TIMELINE_LAYOUT_SIGNDOCUMENT_BLOCK_SIGNER_TITLE',
				[
					'#INDEX#' => $index + 1,
				]
			))
			->setContentBlock($this->getSignerContentBlock($signer))
		;
	}

	return $line;
}