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