You are here

function radioactivity_entity_presave in Radioactivity 8.3

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

Implements hook_entity_presave().

File

./radioactivity.module, line 114
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);
}