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,