You are here

function social_like_entity_insert in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  2. 8 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  3. 8.2 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  4. 8.3 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  5. 8.4 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  6. 8.5 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  7. 8.6 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  8. 8.7 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  9. 8.8 modules/social_features/social_like/social_like.module \social_like_entity_insert()
  10. 10.3.x modules/social_features/social_like/social_like.module \social_like_entity_insert()
  11. 10.1.x modules/social_features/social_like/social_like.module \social_like_entity_insert()
  12. 10.2.x modules/social_features/social_like/social_like.module \social_like_entity_insert()

Implements hook_entity_insert().

File

modules/social_features/social_like/social_like.module, line 42
The social_like module.

Code

function social_like_entity_insert(EntityInterface $entity) {
  if ($entity
    ->getEntityTypeId() == 'vote') {
    social_like_invalidate_cache($entity);
  }
}