MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / extract

Function extract

src/resolution/frameworks/drupal.ts:403–413  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

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};

Callers

nothing calls this directly

Calls 3

extractDrupalRoutesFunction · 0.85
isDrupalHookFileFunction · 0.85
extractDrupalHooksFunction · 0.85

Tested by

no test coverage detected