|
@@ -91,12 +91,13 @@ class PodcastRorController extends ControllerBase {
|
|
|
}
|
|
|
return $data;
|
|
|
}
|
|
|
- public function podcast($query, $title) {
|
|
|
+ public function podcast($query, $description) {
|
|
|
// TODO: add $title argument to the function
|
|
|
$template = $this->twig->loadTemplate(drupal_get_path('module', 'podcast_ror') . '/templates/podcast.html.twig');
|
|
|
$tmpl_data = [ 'ror' => array('podcast' => $this->query($query),
|
|
|
'url' => \Drupal::service('path.current')->getPath(),
|
|
|
- 'title' => $title,
|
|
|
+ 'description' => $description,
|
|
|
+ 'title' => 'Radio Onda Rossa',
|
|
|
)];
|
|
|
//$variables['ror']['url'] =
|
|
|
$xml = $template->render($tmpl_data);
|