Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file
- * GraphQL Example hook implementations.
- */
- /**
- * Implements hook_graphql_types_alter().
- *
- * Make sure the `Url` type implements `GenericUrl`.
- */
- function graphql_example_graphql_types_alter(&$types) {
- $types['url']['interfaces'][] = 'GenericUrl';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement