(filePath: string, content: string)
| 401 | }, |
| 402 | |
| 403 | extract(filePath: string, content: string): { nodes: Node[]; references: UnresolvedRef[] } { |
| 404 | if (filePath.endsWith('.routing.yml')) { |
| 405 | return extractDrupalRoutes(filePath, content); |
| 406 | } |
| 407 | |
| 408 | if (isDrupalHookFile(filePath) || filePath.endsWith('.php')) { |
| 409 | return extractDrupalHooks(filePath, content); |
| 410 | } |
| 411 | |
| 412 | return { nodes: [], references: [] }; |
| 413 | }, |
| 414 | }; |
nothing calls this directly
no test coverage detected