more content types
This commit is contained in:
parent
0d77de6c9f
commit
e6ead3ce8f
1 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,11 @@ class PodcastRorController extends ControllerBase {
|
||||||
|
|
||||||
private function query() {
|
private function query() {
|
||||||
//TODO: estrai argomento dall'url
|
//TODO: estrai argomento dall'url
|
||||||
$arg = 'ror_news';
|
$arg = array('ror_news', 'redazionali', 'news_trasmissioni');
|
||||||
$query = \Drupal::entityQuery('node');
|
$query = \Drupal::entityQuery('node');
|
||||||
$query
|
$query
|
||||||
->condition('status', '1')
|
->condition('status', '1')
|
||||||
->condition('type', $arg)
|
->condition('type', $arg, 'IN')
|
||||||
->sort('nid', 'DESC')
|
->sort('nid', 'DESC')
|
||||||
->range(0, 20);
|
->range(0, 20);
|
||||||
$nids = $query->execute();
|
$nids = $query->execute();
|
||||||
|
|
Loading…
Reference in a new issue