From ca7dba071b26da0e9ceb3fa17dc69116aaaf277f Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 26 May 2024 08:42:56 +0000 Subject: [PATCH] ci: implement `Node` on FormField interface --- src/Type/WPInterface/FormField.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Type/WPInterface/FormField.php b/src/Type/WPInterface/FormField.php index 3154b4dd..6cf54fd5 100644 --- a/src/Type/WPInterface/FormField.php +++ b/src/Type/WPInterface/FormField.php @@ -14,6 +14,7 @@ namespace WPGraphQL\GF\Type\WPInterface; use GraphQL\Error\UserError; +use WPGraphQL\GF\Interfaces\TypeWithInterfaces; use WPGraphQL\GF\Type\Enum\FormFieldTypeEnum; use WPGraphQL\GF\Type\Enum\FormFieldVisibilityEnum; use WPGraphQL\GF\Type\WPInterface\AbstractInterface; @@ -23,7 +24,7 @@ /** * Class - FormField */ -class FormField extends AbstractInterface { +class FormField extends AbstractInterface implements TypeWithInterfaces { /** * Type registered in WPGraphQL. * @@ -44,6 +45,15 @@ public static function get_type_config( ?TypeRegistry $type_registry = null ): a return $config; } + /** + * {@inheritDoc} + */ + public static function get_interfaces(): array { + return [ + 'Node' + ]; + } + /** * {@inheritDoc} */