You are here

trait TypedPluginTrait in GraphQL 8.3

Hierarchy

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\Traits
View source
trait TypedPluginTrait {

  /**
   * @param $definition
   *
   * @return array
   */
  protected function buildType($definition) {
    return StringHelper::parseType($definition['type']);
  }

}

Members