From 86b0909e2586e04b3602d7157785f23584761fd1 Mon Sep 17 00:00:00 2001 From: Lovie Date: Wed, 20 Apr 2022 20:15:35 +0100 Subject: [PATCH] Updated documentation to rename plugin Documentation was not up to date with master codebase where plugin has been renamed to scaffolderPlugin Signed-off-by: Lovie --- .../software-templates/writing-custom-field-extensions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/features/software-templates/writing-custom-field-extensions.md b/docs/features/software-templates/writing-custom-field-extensions.md index 3ff08e6e73..8618e04781 100644 --- a/docs/features/software-templates/writing-custom-field-extensions.md +++ b/docs/features/software-templates/writing-custom-field-extensions.md @@ -74,17 +74,17 @@ export const myCustomValidation = ( This is where the magic happens and creates the custom field extension. Note that if you're writing extensions part of a separate plugin, - then please use `plugin.provide` from there instead and export it part of your `plugin.ts` rather than re-using the `scaffolder.plugin`. + then please use `scaffolderPlugin.provide` from there instead and export it part of your `plugin.ts` rather than re-using the `scaffolder.plugin`. */ import { - plugin, + scaffolderPlugin, createScaffolderFieldExtension, } from '@backstage/plugin-scaffolder'; import { MyCustomExtension } from './MyCustomExtension'; import { myCustomValidation } from './validation'; -export const MyCustomFieldExtension = plugin.provide( +export const MyCustomFieldExtension = scaffolderPlugin.provide( createScaffolderFieldExtension({ name: 'MyCustomExtension', component: MyCustomExtension,