You are here

function node_revision_load in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/node.module \node_revision_load()

Loads a node revision from the database.

Parameters

int $vid: The node revision id.

Return value

\Drupal\node\NodeInterface|null A fully-populated node entity, or NULL if the node is not found.

8 calls to node_revision_load()
FileFieldRevisionTest::testRevisions in core/modules/file/src/Tests/FileFieldRevisionTest.php
Tests creating multiple revisions of a node and managing attached files.
NodeEditFormTest::testNodeEdit in core/modules/node/src/Tests/NodeEditFormTest.php
Checks node edit functionality.
NodeRevisionsAllTest::testRevisions in core/modules/node/src/Tests/NodeRevisionsAllTest.php
Checks node revision operations.
NodeRevisionsTest::testRevisions in core/modules/node/src/Tests/NodeRevisionsTest.php
Checks node revision related operations.
QuickEditLoadingTest::testUserWithPermission in core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
Tests the loading of Quick Edit when a user does have access to it.

... See full list

File

core/modules/node/node.module, line 459
The core module that allows content to be submitted to the site.

Code

function node_revision_load($vid = NULL) {
  return entity_revision_load('node', $vid);
}