Skip to content
Snippets Groups Projects
Commit 2bfaff6b authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #1918254 by dawehner: Fix docs and exception message typo in entity query code

parent aad0e55b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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');
}
}
......@@ -275,6 +275,18 @@ protected function result() {
return $this->sqlQuery->execute()->fetchAllKeyed();
}
/**
* Constructs a select expression 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
* An expression that will select the given field for the given language in
* a SELECT query, such as 'base_table.id'.
*/
protected function getSqlField($field, $langcode) {
if (!isset($this->tables)) {
$this->tables = new Tables($this->sqlQuery);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment