Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / security_review / src / Checks / ErrorReporting.php
index c6d01410c3c862f1cbb1db72c97bbbe829226f38..34dd765577f0d21ac7800986d5777de14f554b56 100644 (file)
@@ -1,13 +1,8 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\security_review\Checks\BaseUrl.
- */
-
 namespace Drupal\security_review\Checks;
 
-use Drupal\Core\Url;
+use Drupal\Core\Link;
 use Drupal\security_review\Check;
 use Drupal\security_review\CheckResult;
 
@@ -73,9 +68,9 @@ class ErrorReporting extends Check {
 
     $paragraphs = [];
     $paragraphs[] = $this->t('You have error reporting set to both the screen and the log.');
-    $paragraphs[] = $this->l(
+    $paragraphs[] = Link::createFromRoute(
       $this->t('Alter error reporting settings.'),
-      Url::fromRoute('system.logging_settings')
+      'system.logging_settings'
     );
 
     return [