fixed présentation node nid in edlp_home

This commit is contained in:
Bachir Soussi Chiadmi
2018-02-09 20:31:41 +01:00
parent 4dca28199c
commit 7dcdddf9de
2 changed files with 4 additions and 16 deletions
@@ -23,7 +23,8 @@ class HomeController extends ControllerBase {
// presentation
$query = \Drupal::entityQuery('node')
->condition('status', 1)
->condition('nid', 5890);
->condition('nid', 12238);
// TODO: présentation nid should be a setting
$pres_nid = $query->execute();
$contents["#presentation_node"] = entity_load('node', array_pop($pres_nid));
@@ -13,7 +13,6 @@ dependencies:
module:
- file
- image
- options
- text
- user
id: node.page.default
@@ -35,13 +34,6 @@ content:
third_party_settings: { }
type: file_default
region: content
field_view_mode:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_visuel:
weight: 0
label: above
@@ -51,13 +43,6 @@ content:
third_party_settings: { }
type: image
region: content
field_workflow_generic:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
links:
weight: 3
region: content
@@ -65,4 +50,6 @@ content:
third_party_settings: { }
hidden:
field_page_type: true
field_view_mode: true
field_workflow_generic: true
langcode: true