entrees index and notice are ajax loaed and displayed

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-08 18:25:33 +01:00
parent 3980479031
commit 6d1b3d33bb
15 changed files with 311 additions and 35 deletions
@@ -73,6 +73,18 @@ function edlptheme_preprocess_node__player_cartel(&$vars){
)
)
);
// TODO: refacorize the link generator as following :
// $url = Url::fromRoute('entity.taxonomy_term.canonical', ['taxonomy_term'=>$tid]);
// $url->setOptions(array(
// 'attributes' => array(
// 'class' => ['index-link', 'ajax-link'],
// 'viewmode'=>'index',
// 'tid'=>$tid,
// 'data-drupal-link-system-path' => $url->getInternalPath()
// )
// ));
// $entree['index_link'] = Link::fromTextAndUrl('index', $url);
// if article not empty
$url = Url::fromRoute('entity.node.canonical', ['node'=>$vars['node']->id()], array(
'attributes' => array(