qd30map.module 554 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. *@file
  4. *Contains \Drupal\qd30map\qd30map.module
  5. */
  6. /**
  7. * @param $existing
  8. * @param $type
  9. * @param $theme
  10. * @param $path
  11. * @return array
  12. */
  13. function qd30map_theme($existing, $type, $theme, $path) {
  14. return [
  15. 'qd30map' => [
  16. 'variables' => []
  17. ],
  18. 'qd30mini' => [
  19. 'variables' => []
  20. ]
  21. ];
  22. }
  23. function qd30map_page_attachments(&$page) {
  24. // $data = json_encode($page);
  25. //
  26. // $page['#attached']['library'][] = 'qd30map/cesiumAdditions';
  27. // $page['#attached']['library'][] = 'qd30map/cesiumMini';
  28. }