service = $service; } /** * @param array $options * @throws \Espo\Core\Exceptions\Error */ public function afterSave(Entity $entity, array $options): void { if (!empty($options['noStream'])) { return; } if (!empty($options[SaveOption::SILENT])) { return; } if (!empty($options['skipStreamNotesAcl'])) { return; } if ($entity->isNew()) { return; } $forceProcessNoteNotifications = !empty($options['forceProcessNoteNotifications']); $this->service->processNoteAcl($entity, $forceProcessNoteNotifications); } }