openlayers.api.php 864 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Hooks for openlayers module.
  5. */
  6. /**
  7. * This hook will be triggered before a map is built and on each of its object.
  8. *
  9. * @param array $build
  10. * The render array that will be rendered later.
  11. * @param \Drupal\openlayers\Types\ObjectInterface $context
  12. * The context, this will be an openlayers object.
  13. */
  14. function hook_openlayers_object_preprocess_alter(array &$build, \Drupal\openlayers\Types\ObjectInterface $context) {
  15. }
  16. /**
  17. * This hook will be triggered after a map is built and on each of its object.
  18. *
  19. * @param array $build
  20. * The render array that will be rendered after this hook.
  21. * @param \Drupal\openlayers\Types\ObjectInterface $context
  22. * The context, this will be an openlayers object.
  23. */
  24. function hook_openlayers_object_postprocess_alter(array &$build, \Drupal\openlayers\Types\ObjectInterface $context) {
  25. }