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

Function claimsReference

src/resolution/frameworks/drupal.ts:706–715  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

704 // resolveOne's pre-filter would drop them before resolve() runs. Claim the
705 // shapes resolve() handles (mirrors the Rails `controller#action` claim).
706 claimsReference(name: string): boolean {
707 return (
708 name.startsWith('hook_') ||
709 name.startsWith('drupal:') ||
710 name.includes('\\') ||
711 /^[A-Za-z_]\w*::?\w+$/.test(name) ||
712 CONTAINER_CALL.test(name) ||
713 DRUPAL_SERVICE_CALL.test(name)
714 );
715 },
716
717 detect(context: ResolutionContext): boolean {
718 // Primary: composer.json identifies a Drupal project/module/theme/profile.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected