diff --git a/src/Controller/ScheduledUpdateAddController.php b/src/Controller/ScheduledUpdateAddController.php index fb169c9..d568373 100644 --- a/src/Controller/ScheduledUpdateAddController.php +++ b/src/Controller/ScheduledUpdateAddController.php @@ -74,10 +74,11 @@ class ScheduledUpdateAddController extends ControllerBase { return $this->addForm($type, $request); } if (count($types) === 0) { + $link = Link::fromTextAndUrl($this->t('Go to the type creation page'), Url::fromRoute('entity.scheduled_update_type.add_form'))->toRenderable(); return array( '#markup' => $this->t('You have not created any %bundle types yet. @link to add a new type.', [ '%bundle' => 'Scheduled update', - '@link' => Link::fromTextAndUrl($this->t('Go to the type creation page'), Url::fromRoute('entity.scheduled_update_type.add_form')), + '@link' => render($link), ]), ); }