You are here

public static function StringHelper::nonNullType in GraphQL 8.3

Appends an exclamation mark to a type string declaring it as non-null.

Parameters

string $type: The type to declare as non-null.

Return value

string The decorated type string.

2 calls to StringHelper::nonNullType()
StringHelper::decorateType in src/Utility/StringHelper.php
Decorates a type as non-null and/or as a list.
_graphql_decorate_deprecated_type in ./graphql.module
Helper function to decorate legacy definitions.

File

src/Utility/StringHelper.php, line 77

Class

StringHelper

Namespace

Drupal\graphql\Utility

Code

public static function nonNullType($type) {
  return "{$type}!";
}