# @Date: 13-12-2017 # @Email: bachir@figureslibres.io # @Filename: edlp_corpus.routing.yml # @Last modified by: bach # @Last modified time: 20-12-2017 # @License: GPL-V3 /** * Implements hook_theme(). */ function edlp_corpus_theme($existing, $type, $theme, $path) { // @see https://www.drupal.org/docs/8/theming/twig/create-custom-twig-templates-from-custom-module return array( 'blockentrees' => array( // 'render element' => '', 'file' => 'blockentrees.inc', 'variables' => array( 'entrees_items' => array(), ), ), ); } /** * Implements hook_page_attachments(). * @param array $attachments */ // function edlp_corpus_page_attachments(array &$attachments) { // //add here any conditions if you need to limit the pages // if (\Drupal::service('path.matcher')->isFrontPage()) { // // $attachments['#attached']['library'][] = 'edlp_corpus/corpus'; // // $attachments['#attached']['drupalSettings']['basepath'] = base_path(); // // $attachments['#attached']['drupalSettings']['pathtoedlpcorpus'] = base_path() . drupal_get_path('module', 'edlp_corpus'); // // $attachments['#attached']['drupalSettings']['pathtotfiles'] = PublicStream::basePath(); // } // }