Skip to content

Commit 9e09c8e

Browse files
authored
#926 - Add layout section scalar type (#979)
* #926 Add scalar type to handle the custom type used by LayoutBuilder
1 parent 293cd1b commit 9e09c8e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Drupal\graphql\Plugin\GraphQL\Scalars\Internal;
4+
5+
6+
/**
7+
* Layout Builder module defines a custom data type that essentially is a
8+
* string, but not called string.
9+
*
10+
* @GraphQLScalar(
11+
* id = "layout_section",
12+
* name = "layout_section"
13+
* )
14+
*/
15+
class LayoutSectionScalar extends StringScalar {
16+
}

0 commit comments

Comments
 (0)