1 node.entity.inc NodeStorageController::postSave(EntityInterface $node, $update)

Overrides EntityDatabaseStorageController::postSave().

Parameters

Node $node: The node object that has just been saved.

Overrides EntityDatabaseStorageController::postSave

File

core/modules/node/node.entity.inc, line 667
Entity controller and class for nodes.

Class

NodeStorageController
Controller class for nodes.

Code

function postSave(EntityInterface $node, $update) {
  // Update the node access table for this node, but only if it is the
  // active revision. There's no need to delete existing records if the node
  // is new.
  if ($node->isActiveRevision()) {
    node_access_acquire_grants($node, $update);
  }
}