Overrides Drupal\Core\Entity\DatabaseStorageController::postSave().
Overrides DatabaseStorageController::postSave
public function postSave(EntityInterface $node, $update) {
// Update the node access table for this node, but only if it is the
// default revision. There's no need to delete existing records if the node
// is new.
if ($node
->isDefaultRevision()) {
node_access_acquire_grants($node
->getBCEntity(), $update);
}
}