• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/controller/controlbutton.php
  • Класс: BitrixIntranetControllerControlButton
  • Вызов: ControlButton::getCalendarLinkAction
public function getCalendarLinkAction($entityType, $entityId): array
{
	if (!$entityType || !$entityId)
	{
		return [];
	}

	$res = [];

	if ($entityType === 'task')
	{
		$data = $this->getTaskData($entityId);

		$res = [
			'name' => $data['TITLE'],
			'desc' => Loc::getMessage('INTRANET_CONTROL_BUTTON_POST_MESSAGE_TASK', [
				'#LINK#' => $data['LINK'],
			]),
			'userIds' => $data['USER_IDS'],
		];
	}

	return $res;
}