public function QueryInterface::age

Queries the current or every revision.

Note that this only affects field conditions. Property conditions always apply to the current revision. @TODO: Once revision tables have been cleaned up, revisit this.

Parameters

$age:

Return value

\Drupal\Core\Entity\Query\QueryInterface The called object.

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 168
Contains \Drupal\Core\Entity\QueryInterface.

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function age($age = FIELD_LOAD_CURRENT);