Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement