• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/entitydetails/timelinemenubar/item/sharing.php
  • Класс: Bitrix\Crm\Component\EntityDetails\TimelineMenuBar\Item\Sharing
  • Вызов: Sharing::prepareSettings
public function prepareSettings(): array
{
	return [
		'config' => [
			'link' => $this->prepareLink(),
			'contacts' => $this->getPhoneContacts(),
			'selectedChannelId' => $this->getSelectedChannelId(),
			'communicationChannels' => $this->getCommunicationChannels(),
			'isNotificationsAvailable' => $this->isNotificationsAvailable(),
			'doPayAttentionToNewFeature' => $this->doPayAttentionToNewFeatureAction(),
			'areCommunicationChannelsAvailable' => $this->areCommunicationChannelsAvailable(),
		],
		'isAvailable' => \Bitrix\Crm\Restriction\RestrictionManager::getCalendarSharingRestriction()->hasPermission(),
	];
}