function computed_field_entity_presave in Computed Field 3.x
Implements hook_entity_presave().
File
- ./
computed_field.module, line 39 - Contains computed_field.module.
Code
function computed_field_entity_presave(EntityInterface $entity) {
\Drupal::service('computed_field.multiple_values_generator')
->setEntity($entity)
->generateMissingValues();
}