2019-03-25 18:28:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Drupal\Core\Url;
|
|
|
|
|
|
|
|
function template_preprocess_materio_home(&$vars){
|
2019-05-23 17:52:46 +02:00
|
|
|
$node_view_builder = \Drupal::entityTypeManager()->getViewBuilder('node');
|
|
|
|
|
|
|
|
$vm = "default";
|
|
|
|
$fpnode = $vars['frontpage_node'];
|
|
|
|
$nvb_fpnode = $node_view_builder->view($fpnode, $vm);
|
|
|
|
$vars['frontpage_node'] = $nvb_fpnode;
|
2019-03-25 18:28:17 +01:00
|
|
|
|
|
|
|
}
|