Skip to content
Snippets Groups Projects
Commit a3c24f77 authored by Mikael Meulle's avatar Mikael Meulle
Browse files

Issue #3502916 by just_like_good_vibes: Undefined array key(s) in...

Issue #3502916 by just_like_good_vibes: Undefined array key(s) in Drupal\ui_patterns\Plugin\Derivative\EntityFieldSourceDeriverBase
parent b6937ecb
No related branches found
No related tags found
1 merge request!333Issue #3502916 by just_like_good_vibes: Undefined array key(s) in Drupal\ui_patterns\Plugin\Derivative\EntityFieldSourceDeriverBase
Pipeline #409327 passed
...@@ -319,7 +319,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta ...@@ -319,7 +319,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
if (!$fields_metadata[$entity_type_id]["fieldable"]) { if (!$fields_metadata[$entity_type_id]["fieldable"]) {
continue; 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)) { if (!is_array($entity_field_map)) {
continue; continue;
} }
...@@ -413,7 +413,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta ...@@ -413,7 +413,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
->setRequired() ->setRequired()
->setLabel((string) ($entity_type_fields_data["label"] ?? "")); ->setLabel((string) ($entity_type_fields_data["label"] ?? ""));
// Derive when bundle is unknown (in views for example) // 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"])) { if (!isset($field_storage_data["label"])) {
// During site install $field_storage_data is not setup completed. // During site install $field_storage_data is not setup completed.
// Skip for now. // Skip for now.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment