|
@@ -14,8 +14,8 @@
|
|
function edlp_corpus_page_attachments(array &$attachments) {
|
|
function edlp_corpus_page_attachments(array &$attachments) {
|
|
//add here any conditions if you need to limit the pages
|
|
//add here any conditions if you need to limit the pages
|
|
if (\Drupal::service('path.matcher')->isFrontPage()) {
|
|
if (\Drupal::service('path.matcher')->isFrontPage()) {
|
|
- $attachments['#attached']['library'][] = 'edlp_corpus/corpus';
|
|
|
|
- $attachments['#attached']['drupalSettings']['basepath'] = base_path();
|
|
|
|
|
|
+ // $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']['pathtoedlpcorpus'] = base_path() . drupal_get_path('module', 'edlp_corpus');
|
|
// $attachments['#attached']['drupalSettings']['pathtotfiles'] = PublicStream::basePath();
|
|
// $attachments['#attached']['drupalSettings']['pathtotfiles'] = PublicStream::basePath();
|
|
}
|
|
}
|