MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / is_drupal_php_file

Function is_drupal_php_file

src/classmap_scanner.rs:812–817  ·  view source on GitHub ↗

Return `true` for file extensions that Drupal treats as PHP source.

(path: &Path)

Source from the content-addressed store, hash-verified

810
811/// Return `true` for file extensions that Drupal treats as PHP source.
812fn is_drupal_php_file(path: &Path) -> bool {
813 matches!(
814 path.extension().and_then(|e| e.to_str()),
815 Some("php" | "module" | "install" | "theme" | "profile" | "inc" | "engine")
816 )
817}
818
819// ─── Core scanner ───────────────────────────────────────────────────────────
820

Callers 1

scan_drupal_directoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected