edlp_home.module 803 B

12345678910111213141516171819202122232425262728293031
  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' => 'includes/edlp_home.inc',
  18. 'variables' => array(
  19. // 'presentation_node' => NULL,
  20. // 'last_fil_node' => NULL,
  21. // 'last_production_node' => NULL,
  22. 'promoted_nodes' => array(),
  23. 'agenda_items' => NULL,
  24. 'entrees_items' => NULL,
  25. ),
  26. ),
  27. );
  28. }