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

Function isDrupalHookFile

src/resolution/frameworks/drupal.ts:207–209  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

205const HOOK_FILE_EXTENSIONS = ['.module', '.install', '.theme', '.inc'];
206
207function isDrupalHookFile(filePath: string): boolean {
208 return HOOK_FILE_EXTENSIONS.some((ext) => filePath.endsWith(ext));
209}
210
211/**
212 * Extract hook implementation references from a Drupal PHP file.

Callers 2

resolveFunction · 0.85
extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected