statamic / docs

Statamic Documentation
https://statamic.dev
Other
105 stars 367 forks source link

Document `ensureField`/`ensureFieldInTab`/`ensureFieldHasConfig` and similar methods #1337

Open duncanmcclean opened 2 months ago

duncanmcclean commented 2 months ago

The Blueprint class includes many "ensure field" methods, which allow developers to dynamically add fields to their blueprints. This is primarily helpful for addons.

We can probably include examples of these methods in the ...BlueprintFound events we have in the docs.