|  | @@ -28,17 +28,23 @@ class HomeController extends ControllerBase {
 | 
	
		
			
				|  |  |      $pres_nid = $query->execute();
 | 
	
		
			
				|  |  |      $contents["#presentation_node"] = entity_load('node', array_pop($pres_nid));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    // last fil
 | 
	
		
			
				|  |  | +    $query = \Drupal::entityQuery('node')
 | 
	
		
			
				|  |  | +      ->condition('status', 1)
 | 
	
		
			
				|  |  | +      ->condition('type', 'fil')
 | 
	
		
			
				|  |  | +      ->sort('created', 'DESC')
 | 
	
		
			
				|  |  | +      ->range(0,1);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // TODO: last fil
 | 
	
		
			
				|  |  | -    // $contents["#last_fil_node"] = "Last Fil";
 | 
	
		
			
				|  |  | +    $fil = $query->execute();
 | 
	
		
			
				|  |  | +    $contents["#last_fil_node"] = entity_load('node', array_pop($fil));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // TODO: last production
 | 
	
		
			
				|  |  | +    // last production
 | 
	
		
			
				|  |  |      $query = \Drupal::entityQuery('node')
 | 
	
		
			
				|  |  |        ->condition('status', 1)
 | 
	
		
			
				|  |  |        ->condition('type', 'page')
 | 
	
		
			
				|  |  |        ->condition('field_page_type', array('1168'), 'NOT IN')
 | 
	
		
			
				|  |  | -      ->range(0,1)
 | 
	
		
			
				|  |  | -      ->sort('created', 'DESC');
 | 
	
		
			
				|  |  | +      ->sort('created', 'DESC')
 | 
	
		
			
				|  |  | +      ->range(0,1);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      $prod = $query->execute();
 | 
	
		
			
				|  |  |      $contents["#last_production_node"] = entity_load('node', array_pop($prod));
 |