From e6ead3ce8f084ce5e00da5227ccb454e339cda98 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Sep 2018 13:38:44 +0200 Subject: [PATCH] more content types --- src/Controller/PodcastRorController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/PodcastRorController.php b/src/Controller/PodcastRorController.php index be633ee..1341092 100644 --- a/src/Controller/PodcastRorController.php +++ b/src/Controller/PodcastRorController.php @@ -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();