Skip to content

Commit

Permalink
ci: implement Node on FormField interface
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed May 26, 2024
1 parent 355c5e3 commit ca7dba0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Type/WPInterface/FormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -23,7 +24,7 @@
/**
* Class - FormField
*/
class FormField extends AbstractInterface {
class FormField extends AbstractInterface implements TypeWithInterfaces {
/**
* Type registered in WPGraphQL.
*
Expand All @@ -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}
*/
Expand Down

0 comments on commit ca7dba0

Please sign in to comment.