placed some block on basic theme, corpus library is now loaded by entreesblock theme array
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
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']['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();
|
||||
}
|
||||
|
||||
@@ -101,6 +101,12 @@ class BlockEntrees extends BlockBase {
|
||||
return array (
|
||||
'#theme' => 'item_list',
|
||||
'#items' => $entrees,
|
||||
'#attached'=>array(
|
||||
'library' => array('edlp_corpus/corpus'),
|
||||
'drupalSettings' => array(
|
||||
'basepath' => base_path()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user