PublishFieldsetFound

Statamic\Events\Data\PublishFieldsetFound

This is dispatched after Statamic finds the fieldset to be used on a publish page.

public function handle(PublishFieldsetFound $event);

You may modify the fieldset here and it will be reflected in the publish form.

An example of when this would be useful is to add a section to a fieldset in the publish page on the fly.


Properties

fieldset

Fieldset

The Statamic\CP\Fieldset instance. You may modify the fieldset without needing to return it.

type

string

The type of data object. Either "page", "entry", "term", "globals", or "user"

data

Data

An instance of Statamic\Contracts\Data\Data. The Page, Entry, Term, GlobalSet, or User instance. When creating (as opposed to editing), this will be null.

Last modified on July 17, 2018