created home node and some computed field
This commit is contained in:
@@ -28,6 +28,15 @@ class HomeController extends ControllerBase {
|
||||
|
||||
$contents = array("#theme"=>'materio_home');
|
||||
|
||||
// presentation
|
||||
$query = \Drupal::entityQuery('node')
|
||||
->condition('status', 1)
|
||||
->condition('nid', 19990);
|
||||
// TODO: présentation nid should be a setting
|
||||
|
||||
$pres_nid = $query->execute();
|
||||
$contents["#frontpage_node"] = entity_load('node', array_pop($pres_nid));
|
||||
|
||||
return $contents;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user