Skip to content

Commit

Permalink
Apply PR 1311
Browse files Browse the repository at this point in the history
  • Loading branch information
Luigisa committed Sep 7, 2023
1 parent 6e3ff7a commit c8b282a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Plugin/Deriver/PluggableSchemaDeriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,11 @@ protected function buildFieldAssociationMap(FieldPluginManager $manager, $types)
if (!array_key_exists($parent, $types)) {
continue;
}
if (!isset($types[$parent]['definition']['interfaces']) || !is_array($types[$parent]['definition']['interfaces'])) {
continue;
}
foreach ($types[$parent]['definition']['interfaces'] as $interface) {
if (isset($fields[$interface][$field]) && $definitions[$fields[$interface][$field]['id']]['type'] != $definitions[$info['id']]['type']) {
if (isset($fields[$interface][$field]) && $definitions[$fields[$interface][$field]['id']]['type'] !== $definitions[$info['id']]['type']) {
$rename[$parent][$field] = TRUE;
}
}
Expand Down

0 comments on commit c8b282a

Please sign in to comment.