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