Skip to main content

hasLabels()

Home > @backstage/plugin-catalog > hasLabels

Returns true if the given entity has labels annotation given by the catalog. For use by EntitySwitch

Signature:

function hasLabels(entity: Entity): boolean;

Parameters

ParameterTypeDescription
entityEntity

Returns:

boolean