public static function StringHelper::listType in GraphQL 8.3
Wraps a type string in brackets declaring it as a list.
Parameters
string $type: The type to declare as a list.
Return value
string The decorated type string.
3 calls to StringHelper::listType()
- EntityFieldDeriver::getDerivativeDefinitionsFromFieldDefinition in modules/
graphql_core/ src/ Plugin/ Deriver/ Fields/ EntityFieldDeriver.php - Provides plugin definition values from fields.
- 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 64
Class
Namespace
Drupal\graphql\UtilityCode
public static function listType($type) {
return "[{$type}]";
}