Skip to main content

entityRouteParams()

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

Utility function to get suitable route params for entityRoute, given an

Signature:

function entityRouteParams(entityOrRef: Entity | CompoundEntityRef | string, options?: EntityRouteParamsOptions): {
readonly kind: string;
readonly namespace: string;
readonly name: string;
};

Parameters

Parameter

Type

Description

entityOrRef

Entity | CompoundEntityRef | string

options

EntityRouteParamsOptions

(Optional)

**Returns:**

{ readonly kind: string; readonly namespace: string; readonly name: string; }