# detectModalTriggers

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/semantic-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/semantic-detector.ts#L171)

Detect modal/dialog trigger methods

Finds methods that open modals/dialogs based on:
- Method names ending with "Prepare"
- Calls to openPopup, showDialog, openModal

## Signature

```ts
function detectModalTriggers(code: string): string[]
```

## Parameters

| Name | Type |
|---|---|
| `code` | `string` |

**Returns:** `string[]`
