Skip to main content

CatalogBuilder.setPlaceholderResolver()

Home > @backstage/plugin-catalog-backend > CatalogBuilder > setPlaceholderResolver

Adds, or overwrites, a handler for placeholders (e.g. $file) in entity definition files.

Signature:

setPlaceholderResolver(key: string, resolver: PlaceholderResolver): CatalogBuilder;

Parameters

Parameter

Type

Description

key

string

The key that identifies the placeholder, e.g. "file"

resolver

PlaceholderResolver

The resolver that gets values for this placeholder

**Returns:**

CatalogBuilder