Override Controller\Service /content-manager/collection-types/application::... . Hook response. Guards

Hi!

  1. Please tell me how to redefine\override the Controller\Service for this type of endpoint “/content-manager/collection-types/application::document.document” ( endpoint for editing an entity from the admin panel ) ?
  2. Is it possible to forcibly return a response from the hook (for example, in the hook, already handle the error and return a 400 response).
    As I understand it, the input parameter is only “data”. How to return ctx?
  3. How to correctly implement something like a Guard for an endpoint?

Thanks.

2 Likes