created home node and some computed field

This commit is contained in:
2019-05-23 17:52:46 +02:00
parent 74a821104f
commit 5d2a8bc73b
31 changed files with 651 additions and 31 deletions

View File

@@ -3,5 +3,11 @@
use Drupal\Core\Url;
function template_preprocess_materio_home(&$vars){
$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;
}