public function NodeStorage::revisionIds in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/NodeStorage.php \Drupal\node\NodeStorage::revisionIds()
Gets a list of node revision IDs for a specific node.
Parameters
\Drupal\node\NodeInterface: The node entity.
Return value
int[] Node revision IDs (in ascending order).
Overrides NodeStorageInterface::revisionIds
File
- core/
modules/ node/ src/ NodeStorage.php, line 25 - Contains \Drupal\node\NodeStorage.
Class
- NodeStorage
- Defines the controller class for nodes.
Namespace
Drupal\nodeCode
public function revisionIds(NodeInterface $node) {
return $this->database
->query('SELECT vid FROM {node_revision} WHERE nid=:nid ORDER BY vid', array(
':nid' => $node
->id(),
))
->fetchCol();
}