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

Function isDrupalHookFile

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

Source from the content-addressed store, hash-verified

216const HOOK_FILE_EXTENSIONS = ['.module', '.install', '.theme', '.inc'];
217
218function isDrupalHookFile(filePath: string): boolean {
219 return HOOK_FILE_EXTENSIONS.some((ext) => filePath.endsWith(ext));
220}
221
222/**
223 * 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