You are here

function radioactivity_entity_presave in Radioactivity 4.0.x

Same name and namespace in other branches
  1. 8.3 radioactivity.module \radioactivity_entity_presave()

Implements hook_entity_presave().

File

./radioactivity.module, line 122
Provides a field type which can be used as a hotness metric.

Code

function radioactivity_entity_presave(EntityInterface $entity) {
  return Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityOperations::class)
    ->entityPresave($entity);
}