diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php index ac09f8c..bd52b04 100644 --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php @@ -664,7 +664,7 @@ protected function mapFromStorageRecords(array $records, $load_from_revision = F * * @param array &$values * Associative array of entities values, keyed on the entity ID. - * @param array $translations + * @param array &$translations * List of translations, keyed on the entity ID. */ protected function loadFromDataTables(array &$values, array &$translations) { @@ -711,7 +711,6 @@ protected function loadFromDataTables(array &$values, array &$translations) { // LanguageInterface::LANGCODE_DEFAULT as key. $langcode = empty($row['default_langcode']) ? $row[$this->langcodeKey] : LanguageInterface::LANGCODE_DEFAULT; - // This is not nice. $translations[$id][$langcode] = TRUE; foreach ($fields as $field_name) { @@ -1217,10 +1216,11 @@ protected function getQueryServiceName() { /** * Loads values of fields stored in dedicated tables for a group of entities. * - * @param array $values + * @param array &$values * An array of values keyed by entity ID. * @param bool $load_from_revision - * Flag to indicate whether revisions should be loaded or not. + * (optional) Flag to indicate whether revisions should be loaded or not, + * defaults to FALSE. */ protected function loadFromDedicatedTables(array &$values, $load_from_revision) { if (empty($values)) {