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

Parameter

Type

Description

entityOrRef

Entity | CompoundEntityRef | string

Either an entity, or a ref to it.

context

{ defaultKind?: string; defaultNamespace?: string; }

(Optional) Contextual information that may affect the presentation.

**Returns:**

EntityRefPresentationSnapshot