getCollectionName() — astro Function Reference
Architecture documentation for the getCollectionName() function in frontmatter.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d3244c07_27fb_9495_9c79_ebc5653dbf66["getCollectionName()"] ea4d1e16_3d0b_5a14_84c7_af64d3dde1b2["frontmatter.ts"] d3244c07_27fb_9495_9c79_ebc5653dbf66 -->|defined in| ea4d1e16_3d0b_5a14_84c7_af64d3dde1b2 53e0489f_e9f0_ae9d_f78e_76a17d617bb1["getFrontmatterLanguagePlugin()"] 53e0489f_e9f0_ae9d_f78e_76a17d617bb1 -->|calls| d3244c07_27fb_9495_9c79_ebc5653dbf66 style d3244c07_27fb_9495_9c79_ebc5653dbf66 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/language-tools/ts-plugin/src/frontmatter.ts lines 28–34
function getCollectionName(collectionConfig: CollectionConfig[], fsPath: string) {
for (const collection of collectionConfig) {
if (collection.config.entries[fsPath]) {
return collection.config.entries[fsPath];
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getCollectionName() do?
getCollectionName() is a function in the astro codebase, defined in packages/language-tools/ts-plugin/src/frontmatter.ts.
Where is getCollectionName() defined?
getCollectionName() is defined in packages/language-tools/ts-plugin/src/frontmatter.ts at line 28.
What calls getCollectionName()?
getCollectionName() is called by 1 function(s): getFrontmatterLanguagePlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free