You are here

protected function TypedPluginTrait::buildType in GraphQL 8.3

Parameters

$definition:

Return value

array

3 calls to TypedPluginTrait::buildType()
FieldPluginBase::getDefinition in src/Plugin/GraphQL/Fields/FieldPluginBase.php
Returns the plugin's type or field definition for the schema.
MutationPluginBase::getDefinition in src/Plugin/GraphQL/Mutations/MutationPluginBase.php
Returns the plugin's type or field definition for the schema.
SubscriptionPluginBase::getDefinition in src/Plugin/GraphQL/Subscriptions/SubscriptionPluginBase.php
Returns the plugin's type or field definition for the schema.

File

src/Plugin/GraphQL/Traits/TypedPluginTrait.php, line 14

Class

TypedPluginTrait

Namespace

Drupal\graphql\Plugin\GraphQL\Traits

Code

protected function buildType($definition) {
  return StringHelper::parseType($definition['type']);
}