diff --git a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php index 35bc2fd..e970819 100644 --- a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php +++ b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php @@ -69,7 +69,7 @@ public function get($entity_type, $conjunction, EntityManager $entity_manager) { * The query object that can query the given entity type. */ public function getAggregate($entity_type, $conjunction, EntityManager $entity_manager) { - throw new QueryException('Aggregation over configuration enitties is not supported'); + throw new QueryException('Aggregation over configuration entities is not supported'); } } diff --git a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php index 9d8ab5d..ab687af 100644 --- a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php +++ b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php @@ -275,6 +275,16 @@ protected function result() { return $this->sqlQuery->execute()->fetchAllKeyed(); } + /** + * Constructs a sql field for a given field and language. + * + * @param string $field + * The name of the field being queried. + * @param string $langcode + * The language code of the field. + * @return string + * The sql field of the field and language, so for example "$table.$field". + */ protected function getSqlField($field, $langcode) { if (!isset($this->tables)) { $this->tables = new Tables($this->sqlQuery);