Commit 0ae6a0f5 authored by dj3c1t's avatar dj3c1t

menu service returns array of items

parent 5d5280bf
Pipeline #47 skipped
......@@ -20,21 +20,25 @@ class SourceMLMenus {
}
public function newSources() {
$items = array();
if($sourceAuthors = $this->sourceAuthorRepo->getNotValidatedSourceAuthors($this->user)) {
return array(
$items[] = array(
"route" => "account_source_author_new",
"label" => "Nouvelle sources (".count($sourceAuthors).")",
);
}
return $items;
}
public function toggleAutoPlayNextTrackButton() {
return array(
$items = array();
$items[] = array(
"route" => "source_toggle_auto_play_next_track",
"label" => "Lecture automatique",
"glyphicon" => "glyphicon-ok-circle",
"class" => "toggle_auto_play_next_track",
);
return $items;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment