added 'see all' to last docs block in home #459

This commit is contained in:
2019-03-19 12:02:41 +01:00
parent a6f139db32
commit 02f79c5eb9
3 changed files with 21 additions and 1 deletions
@@ -89,6 +89,19 @@ function template_preprocess_edlp_home(&$vars){
'#theme' => 'item_list',
'#items' => [],
),
'seeall'=>array(
'#type' => 'link',
'#prefix'=> '<nav>',
'#title' => t("See all"),
'#suffix'=> '</nav>',
'#url' => $lastdocs_url,
'#options'=>array(
'attributes' => array(
'data-drupal-link-system-path' => $lastdocs_url->getInternalPath(),
'class' => array('ajax-link'),
)
)
),
);
foreach($vars['lastdocs_items'] as $node){
$lastdocs['list']['#items'][] = $node_view_builder->view($node, 'search_index');