You are here

public function Uppercase::resolve in GraphQL 8.4

Value resolver.

Parameters

string $string:

Return value

string

File

src/Plugin/GraphQL/DataProducer/String/Uppercase.php, line 33

Class

Uppercase
Transforms a string to uppercase.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\String

Code

public function resolve($string) {
  return strtoupper($string);
}