You are here

public function QueryBase::currentRevision in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::currentRevision()

Limits the query to only default revisions.

See the Entity API topic for information about the current revision.

Return value

$this

Overrides QueryInterface::currentRevision

File

core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 260

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

public function currentRevision() {
  $this->allRevisions = FALSE;
  $this->latestRevision = FALSE;
  return $this;
}