Merge pull request #32061 from elaine-mattos/feat/add-description-plugin-feature-flags

feat(core-plugin-api): add optional description to plugin feature flags
This commit is contained in:
Andre Wanlin
2026-03-07 12:47:26 -06:00
committed by GitHub
9 changed files with 34 additions and 2 deletions
+8 -1
View File
@@ -19,11 +19,18 @@ import { createPlugin } from '@backstage/core-plugin-api';
export const examplePlugin = createPlugin({
// ...
featureFlags: [{ name: 'show-example-feature' }],
featureFlags: [
{
name: 'show-example-feature',
description: 'Enables the new beta dashboard view',
},
],
// ...
});
```
Note that the `description` property is optional. If not provided, the default "Registered in {pluginId} plugin" message is shown.
### In the application
Defining a feature flag in the application is done by adding feature flags in `featureFlags` array in the