• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/entity/modelsynchronizer.php
  • Класс: BitrixDiskInternalsEntityModelSynchronizer
  • Вызов: ModelSynchronizer::unsubscribe
public function unsubscribe(BaseObject $link)
{
	if (!$this->modelToHandlers->contains($link))
	{
		return;
	}

	$handlerId = $this->modelToHandlers[$link];
	$this->eventManager->removeEventHandler(
		Driver::INTERNAL_MODULE_ID,
		$this->generateEventName($link),
		$handlerId
	);

	$this->modelToHandlers->detach($link);
}