trait TypedPluginTrait in GraphQL 8.3
Hierarchy
- trait \Drupal\graphql\Plugin\GraphQL\Traits\TypedPluginTrait
4 files declare their use of TypedPluginTrait
- FieldPluginBase.php in src/
Plugin/ GraphQL/ Fields/ FieldPluginBase.php - InputTypePluginBase.php in src/
Plugin/ GraphQL/ InputTypes/ InputTypePluginBase.php - MutationPluginBase.php in src/
Plugin/ GraphQL/ Mutations/ MutationPluginBase.php - SubscriptionPluginBase.php in src/
Plugin/ GraphQL/ Subscriptions/ SubscriptionPluginBase.php
File
- src/
Plugin/ GraphQL/ Traits/ TypedPluginTrait.php, line 7
Namespace
Drupal\graphql\Plugin\GraphQL\TraitsView source
trait TypedPluginTrait {
/**
* @param $definition
*
* @return array
*/
protected function buildType($definition) {
return StringHelper::parseType($definition['type']);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TypedPluginTrait:: |
protected | function |