edlp_home.module 714 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. # @Author: Bachir Soussi Chiadmi <bach>
  3. # @Date: 13-12-2017
  4. # @Email: bachir@figureslibres.io
  5. # @Filename: edlp_home.module
  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_home_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_home' => array(
  16. // 'render element' => '',
  17. 'file' => 'edlp_home.inc',
  18. 'variables' => array(
  19. 'presentation_node' => NULL,
  20. 'last_fil_node' => NULL,
  21. 'last_production_node' => NULL,
  22. 'agenda_items' => NULL
  23. ),
  24. ),
  25. );
  26. }