Skip to content

Commit

Permalink
#926 - Add layout section scalar type (#979)
Browse files Browse the repository at this point in the history
* #926 Add scalar type to handle the custom type used by LayoutBuilder
  • Loading branch information
das-peter authored Sep 7, 2023
1 parent 293cd1b commit 9e09c8e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Plugin/GraphQL/Scalars/Internal/LayoutSectionScalar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Drupal\graphql\Plugin\GraphQL\Scalars\Internal;


/**
* Layout Builder module defines a custom data type that essentially is a
* string, but not called string.
*
* @GraphQLScalar(
* id = "layout_section",
* name = "layout_section"
* )
*/
class LayoutSectionScalar extends StringScalar {
}

0 comments on commit 9e09c8e

Please sign in to comment.