• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/CalendarSharing.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\CalendarSharing
  • Вызов: CalendarSharing::createCancelMeetingMenuItem
private function createCancelMeetingMenuItem(): ?Layout\Menu\MenuItem
{
	if (!$this->canEditEntity() || !$this->getEventId())
	{
		return null;
	}

	return (new Layout\Menu\MenuItem(Loc::getMessage('CRM_TIMELINE_ITEM_CALENDAR_SHARING_CANCEL_MEETING')))
		->setAction(
			(new Layout\Action\RunAjaxAction('crm.timeline.calendar.sharing.cancelMeeting'))
				->addActionParamInt('eventId', $this->getEventId())
				->addActionParamInt('ownerId', $this->getContext()->getEntityId())
				->addActionParamInt('ownerTypeId', $this->getContext()->getEntityTypeId())
				->setAnimation(Layout\Action\Animation::disableItem()->setForever())
		);
}