Skip to main content

defaultEntityPresentation()

Home > @backstage/plugin-catalog-react > defaultEntityPresentation

This returns the default representation of an entity.

Signature:

function defaultEntityPresentation(entityOrRef: Entity | CompoundEntityRef | string, context?: {
defaultKind?: string;
defaultNamespace?: string;
}): EntityRefPresentationSnapshot;

Parameters

ParameterTypeDescription
entityOrRefEntity | CompoundEntityRef | stringEither an entity, or a ref to it.
context{ defaultKind?: string; defaultNamespace?: string; }(Optional) Contextual information that may affect the presentation.

Returns:

EntityRefPresentationSnapshot