Skip to content

Commit 6e3ff7a

Browse files
committed
Apply PR 1246
1 parent 054d02d commit 6e3ff7a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,18 @@ protected function buildType($type) {
508508
* @param array $field
509509
* The type reference.
510510
*
511-
* @return array
511+
* @return array|bool
512512
* The field definition.
513513
*/
514514
protected function buildField($field) {
515-
if ($field['definition']['type'][0] == "layout_section") {
515+
$exceptions = [
516+
'layout_section',
517+
'shipment_item'
518+
];
519+
if (in_array($field['definition']['type'][0], $exceptions, TRUE)) {
516520
return FALSE;
517521
}
522+
518523
if (!isset($this->fields[$field['id']])) {
519524
$creator = [$field['class'], 'createInstance'];
520525
$this->fields[$field['id']] = $creator($this, $this->fieldManager, $field['definition'], $field['id']);

0 commit comments

Comments
 (0)