Skip to content

Commit 2dd8dfd

Browse files
committed
Altering Url type to implement GenericUrl.
1 parent 53059f2 commit 2dd8dfd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

graphql_example.module

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* @file
5+
* GraphQL Example hook implementations.
6+
*/
7+
8+
/**
9+
* Implements hook_graphql_types_alter().
10+
*
11+
* Make sure the `Url` type implements `GenericUrl`.
12+
*/
13+
function graphql_example_graphql_types_alter(&$types) {
14+
$types['url']['interfaces'][] = 'GenericUrl';
15+
}

0 commit comments

Comments
 (0)