This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

Custom Create Endpoint

Sometimes a widget may need a custom create action. This can be because some additional logic is needed when creating entities or it might be that it needs to be run in privileged mode because no ACL rule for create rights is possible or wanted.

To create such an endpoint, you will probably want to implement the CustomCreateEntitiesResource interface and extend from AbstractEntitiesResource. Do keep security in mind and reference the documentation on privileged rebinding if you are unsure about it.

After the endpoint is created, you can configure the *_create form to use it by setting the create-endpoint attribute on the top most <form> element.