• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/SignDocument.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\SignDocument
  • Вызов: SignDocument::getDateContentBlock
protected function getDateContentBlock(): ?Layout\Body\ContentBlock
{
	if (!$this->getSignDocument())
	{
		return null;
	}

	return (new Layout\Body\ContentBlock\ContentBlockWithTitle())
		->setTitle(Loc::getMessage('CRM_SERVICE_TIMELINE_LAYOUT_SIGNDOCUMENT_BLOCK_DATE'))
		->setContentBlock((new Layout\Body\ContentBlock\Date())
			->setDate($this->getSignDocument()
				->getDateCreate()
				->toUserTime())
		)
	;
}