public function CiviEntityStorage::civiPostSave in CiviCRM Entity 8.3
Allows CiviCRM hook to invoke postsave.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The saved entity.
$update: Specifies whether the entity is being updated or created.
See also
\Drupal\Core\Entity\ContentEntityStorageBase::doPostSave
File
- src/CiviEntityStorage.php, line 721 
Class
- CiviEntityStorage
- Defines entity class for external CiviCRM entities.
Namespace
Drupal\civicrm_entityCode
public function civiPostSave(EntityInterface $entity, $update) {
  if (!empty($entity->drupal_crud)) {
    return;
  }
  $this
    ->doPostSave($entity, $update);
}