edlp_agenda.module 704 B

123456789101112131415161718192021222324252627
  1. <?php
  2. # @Author: Bachir Soussi Chiadmi <bach>
  3. # @Date: 13-12-2017
  4. # @Email: bachir@figureslibres.io
  5. # @Filename: edlp_corpus.routing.yml
  6. # @Last modified by: bach
  7. # @Last modified time: 20-12-2017
  8. # @License: GPL-V3
  9. /**
  10. * Implements hook_theme().
  11. */
  12. function edlp_agenda_theme($existing, $type, $theme, $path) {
  13. // @see https://www.drupal.org/docs/8/theming/twig/create-custom-twig-templates-from-custom-module
  14. return array(
  15. 'edlp_agenda' => array(
  16. // 'render element' => '',
  17. 'file' => 'includes/edlp_agenda.inc',
  18. 'variables' => array(
  19. 'next_event_node' => NULL,
  20. 'coming_events_nodes' => NULL,
  21. 'past_events_nodes' => NULL
  22. ),
  23. ),
  24. );
  25. }