You are here

TypedPluginTrait.php in GraphQL 8.3

File

src/Plugin/GraphQL/Traits/TypedPluginTrait.php
View source
<?php

namespace Drupal\graphql\Plugin\GraphQL\Traits;

use Drupal\graphql\Utility\StringHelper;
trait TypedPluginTrait {

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

}

Traits

Namesort descending Description
TypedPluginTrait