You are here

FilterFormat.php in GraphQL 8.3

File

modules/graphql_core/src/Plugin/GraphQL/Scalars/TypedData/FilterFormat.php
View source
<?php

namespace Drupal\graphql_core\Plugin\GraphQL\Scalars\TypedData;

use Drupal\graphql\Plugin\SchemaBuilderInterface;
use Drupal\graphql\Plugin\GraphQL\Scalars\ScalarPluginBase;
use Drupal\graphql\Plugin\TypePluginManager;
use GraphQL\Type\Definition\Type;

/**
 * @GraphQLScalar(
 *   id = "filter_format",
 *   name = "FilterFormat",
 *   type = "filter_format"
 * )
 */
class FilterFormat extends ScalarPluginBase {

  /**
   * {@inheritdoc}
   */
  public static function createInstance(SchemaBuilderInterface $builder, TypePluginManager $manager, $definition, $id) {
    return Type::string();
  }

}

Classes

Namesort descending Description
FilterFormat Plugin annotation @GraphQLScalar( id = "filter_format", name = "FilterFormat", type = "filter_format" )