Commit 122c8e16 authored by catch's avatar catch
Browse files

fix: #3582171 [PHP 8.5] Strengthen views data with entity types w/o data tables

By: claudiu.cristea
By: alexpott
By: larowlan
By: godotislate
parent 362ee497
Loading
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@ public function defaultFieldImplementation(FieldStorageConfigInterface $field_st
      ];
    }

    if ($data_table) {
      if ($translation_join_type === 'language_bundle') {
        $data[$table_alias]['table']['join'][$data_table]['join_id'] = 'field_or_language_join';
        $data[$table_alias]['table']['join'][$data_table]['extra'][] = [
@@ -184,12 +185,13 @@ public function defaultFieldImplementation(FieldStorageConfigInterface $field_st
          'value' => $untranslatable_config_bundles,
        ];
      }
    elseif ($translation_join_type === 'language' && $data_table) {
      elseif ($translation_join_type === 'language') {
        $data[$table_alias]['table']['join'][$data_table]['extra'][] = [
          'left_field' => 'langcode',
          'field' => 'langcode',
        ];
      }
    }

    if ($supports_revisions) {
      $table_alias = $field_tables[EntityStorageInterface::FIELD_LOAD_REVISION]['alias'];