|
@@ -23,11 +23,11 @@ class PodcastRorController extends ControllerBase {
|
|
|
|
|
|
private function query() {
|
|
|
//TODO: estrai argomento dall'url
|
|
|
- $arg = 'ror_news';
|
|
|
+ $arg = array('ror_news', 'redazionali', 'news_trasmissioni');
|
|
|
$query = \Drupal::entityQuery('node');
|
|
|
$query
|
|
|
->condition('status', '1')
|
|
|
- ->condition('type', $arg)
|
|
|
+ ->condition('type', $arg, 'IN')
|
|
|
->sort('nid', 'DESC')
|
|
|
->range(0, 20);
|
|
|
$nids = $query->execute();
|