public function QueryBase::currentRevision in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::currentRevision()
- 9 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\QueryCode
public function currentRevision() {
$this->allRevisions = FALSE;
$this->latestRevision = FALSE;
return $this;
}