Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

The constants FIELD_LOAD_CURRENT and FIELD_LOAD_REVISION have moved to the EntityStorageControllerInterface. This resolves issues with dependencies in the installer since the entity storage system is used before the field module is enabled.

7.x code

$this->queryResults = $this->factory->get('entity_test_mulrev')
       ->condition("$greetings.value", 'merhaba')
       ->age(FIELD_LOAD_REVISION)
       ->sort('revision_id')
       ->execute();

8.x code

$this->queryResults = $this->factory->get('entity_test_mulrev')
       ->condition("$greetings.value", 'merhaba')
       ->age(EntityStorageControllerInterface::FIELD_LOAD_REVISION)
       ->sort('revision_id')
       ->execute();
Impacts: 
Module developers