diff --git a/src/Form/MultidomainGoogleAnalyticsAdminSettingsForm.php b/src/Form/MultidomainGoogleAnalyticsAdminSettingsForm.php
index c08203d..10a301b 100644
--- a/src/Form/MultidomainGoogleAnalyticsAdminSettingsForm.php
+++ b/src/Form/MultidomainGoogleAnalyticsAdminSettingsForm.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\multidomain_google_analytics\Form;
 
+use Drupal\Core\Link;
 use Drupal\Core\Form\ConfigFormBase;
 use Drupal\Core\Form\FormStateInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -102,7 +103,9 @@ class MultidomainGoogleAnalyticsAdminSettingsForm extends ConfigFormBase {
     }
     else {
       $url = Url::fromRoute('domain.admin');
-      $domain_link = $this->l($this->t('Domain records'), $url);
+      // TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.
+      // Please manually remove the `use LinkGeneratorTrait;` statement from this class.
+      $domain_link = Link::fromTextAndUrl($this->t('Domain records'), $url);
       $form['title']['#markup'] = $this->t('There is no Domain record yet.Please create a domain records.See link: @domain_list', ['@domain_list' => $domain_link]);
       return $form;
     }
