l10n = $l10n; $this->urlGenerator = $urlGenerator; } /** * @inheritDoc */ public function getId(): string { return Application::APP_ID; } /** * @inheritDoc */ public function getTitle(): string { return $this->l10n->t('Radio stations'); } /** * @inheritDoc */ public function getOrder(): int { return 10; } /** * @inheritDoc */ public function getIconClass(): string { return 'icon-radio'; } /** * @inheritDoc */ public function getUrl(): ?string { return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->linkToRoute('radio.page.index')); } /** * @inheritDoc */ public function load(): void { Util::addScript(Application::APP_ID, 'radio-dashboard'); Util::addStyle(Application::APP_ID, 'dashboard'); } }