Builds an entity query.
\Drupal\Core\Entity\Query\QueryInterface $entity_query: EntityQuery instance.
array $values: An associative array of properties of the entity, where the keys are the property names and the values are the values those properties must have.
Overrides DatabaseStorageController::buildPropertyQuery
protected function buildPropertyQuery(QueryInterface $entity_query, array $values) {
if ($this->dataTable) {
// @todo We should not be using a condition to specify whether conditions
// apply to the default language. See http://drupal.org/node/1866330.
// Default to the original entity language if not explicitly specified
// otherwise.
if (!array_key_exists('default_langcode', $values)) {
$values['default_langcode'] = 1;
}
elseif ($values['default_langcode'] === NULL) {
unset($values['default_langcode']);
}
}
parent::buildPropertyQuery($entity_query, $values);
}