1 | <?php |
||
18 | abstract class TypePluginBase extends PluginBase implements TypeSystemPluginInterface { |
||
19 | use CacheablePluginTrait; |
||
20 | use NamedPluginTrait; |
||
21 | use FieldablePluginTrait; |
||
22 | |||
23 | /** |
||
24 | * The type instance. |
||
25 | * |
||
26 | * @var \Drupal\graphql\GraphQL\Type\ObjectType |
||
27 | */ |
||
28 | protected $definition; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function getDefinition(PluggableSchemaBuilderInterface $schemaBuilder) { |
||
54 | |||
55 | /** |
||
56 | * Build the list of interfaces. |
||
57 | * |
||
58 | * @param \Drupal\graphql\Plugin\GraphQL\PluggableSchemaBuilderInterface $schemaBuilder |
||
59 | * Instance of the schema manager to resolve dependencies. |
||
60 | * |
||
61 | * @return \Youshido\GraphQL\Type\AbstractInterfaceTypeInterface[] |
||
62 | * The list of interfaces. |
||
63 | */ |
||
64 | protected function buildInterfaces(PluggableSchemaBuilderInterface $schemaBuilder) { |
||
78 | |||
79 | /** |
||
80 | * Checks whether this type applies to a given object. |
||
81 | * |
||
82 | * @param mixed $object |
||
83 | * The object to check against. |
||
84 | * |
||
85 | * @return bool |
||
86 | * TRUE if this type applies to the given object, FALSE otherwise. |
||
87 | */ |
||
88 | public function applies($object) { |
||
91 | |||
92 | } |
||
93 |