(filePath: string)
| 216 | const HOOK_FILE_EXTENSIONS = ['.module', '.install', '.theme', '.inc']; |
| 217 | |
| 218 | function 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. |