Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2026 at 08:02 UTC
Updated:
2 Sep 2026 at 08:35 UTC
Jump to comment: Most recent
One of the sanctioned ways to add site-specific behaviour without touching generated code — and the one meant to absorb most of it — is a structure property whose source is @service:method rather than a field. Without it, anything computed forces a subclass, and the promise that generated files never need editing does not hold.
@service:method syntax in a structure property and resolve it through the container at build time.passthrough shape that returns the service result unchanged, and kernel coverage of both the happy path and every failure mode above.Everything. The security restriction is the part that needs the most thought: configuration that can call code is configuration that can be an attack.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented