I have a question regarding Computed Values in Drupal 8. I currently use Computed Fields in Drupal 7 to perform mathematical operations on certain fields and save that calculation in another field. I am attempting to recreate this functionality in a Drupal 8 install.

I recently saw an article that said Computed Fields would be depreciated by the functionality of Drupal 8 core. However, it is not clear to me how to recreate this in Drupal 8. Could someone explain how I take one integer field and multiply it by a percentage to get a decimal number?

I would appreciate any help provided.



  • can you link this article you are talking about? I don't think there's such a feature in D8 core at the moment...
    – Sifro
    Dec 9, 2013 at 22:26

1 Answer 1


There you are:


Basically you have to write a plugin and store your calculations in the getValue() function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.