Skip to content
Snippets Groups Projects

Issue #3502916 by just_like_good_vibes: Undefined array key(s) in Drupal\ui_patterns\Plugin\Derivative\EntityFieldSourceDeriverBase

Merged Issue #3502916 by just_like_good_vibes: Undefined array key(s) in Drupal\ui_patterns\Plugin\Derivative\EntityFieldSourceDeriverBase
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -319,7 +319,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
if (!$fields_metadata[$entity_type_id]["fieldable"]) {
continue;
}
$entity_field_map = $all_entity_field_map[$entity_type_id];
$entity_field_map = $all_entity_field_map[$entity_type_id] ?? NULL;
if (!is_array($entity_field_map)) {
continue;
}
@@ -413,7 +413,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
->setRequired()
->setLabel((string) ($entity_type_fields_data["label"] ?? ""));
// Derive when bundle is unknown (in views for example)
foreach ($entity_type_fields_data["field_storages"] as $field_name => $field_storage_data) {
foreach (($entity_type_fields_data["field_storages"] ?? []) as $field_name => $field_storage_data) {
if (!isset($field_storage_data["label"])) {
// During site install $field_storage_data is not setup completed.
// Skip for now.
Loading