You are here

FancyBike.php in GraphQL 8.3

File

tests/modules/graphql_override_test/src/Plugin/GraphQL/Types/FancyBike.php
View source
<?php

namespace Drupal\graphql_override_test\Plugin\GraphQL\Types;

use Drupal\graphql_plugin_test\Plugin\GraphQL\Types\Bike;

/**
 * Replace our bike with an over-engineered one.
 *
 * Adds an inline gadget field. Because every bike needs gadgets.
 *
 * @GraphQLType(
 *   id = "fancy_bike",
 *   name = "Bike",
 *   interfaces = {"Vehicle"},
 *   weight = 1
 * )
 */
class FancyBike extends Bike {

}

Classes

Namesort descending Description
FancyBike Replace our bike with an over-engineered one.