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

Function isDrupalHookFile

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

Source from the content-addressed store, hash-verified

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