Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataObject] add interface for calculated fields #4283

FredoVelcro opened this issue Apr 25, 2019 · 2 comments


None yet
2 participants
Copy link

commented Apr 25, 2019


Could be nice to add an interface for calculated field as describe here :

For instance :

interface CalculatedFieldInterface
    public static function compute($object, $context);
    public static function getCalculatedValueForEditMode($object, $context);

This comment has been minimized.

Copy link

commented May 3, 2019

Absolutely! It should be also possible to define the calculator class as a service using the @Service\Calculator syntax, like we do for the path formatter (relational data-types) and the options provider (select data-type).

Would you provide a PR for that?


This comment has been minimized.

Copy link

commented May 3, 2019

Great, PR has been submitted !
Was not sure of adding "getCalculatedValueForEditMode()" in the default interface cause it could be optional..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.