You are here

public function EntityFieldQuery::age in Drupal 7

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:

  • FIELD_LOAD_CURRENT (default): Query the most recent revisions for all entities. The results will be keyed by entity type and entity ID.
  • FIELD_LOAD_REVISION: Query all revisions. The results will be keyed by entity type and entity revision ID.

Return value

EntityFieldQuery The called object.

File

includes/entity.inc, line 1125

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Code

public function age($age) {
  $this->age = $age;
  return $this;
}