Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / security_review / src / Checks / PrivateFiles.php
index e19fb9fe6e6489df1094401e01c703072faf6422..e40649e1538333151e6ddd8a8fe196212bffc521 100644 (file)
@@ -1,14 +1,9 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\security_review\Checks\PrivateFiles.
- */
-
 namespace Drupal\security_review\Checks;
 
+use Drupal\Core\Link;
 use Drupal\Core\StreamWrapper\PrivateStream;
-use Drupal\Core\Url;
 use Drupal\security_review\Check;
 use Drupal\security_review\CheckResult;
 
@@ -77,9 +72,9 @@ class PrivateFiles extends Check {
 
     $paragraphs = [];
     $paragraphs[] = $this->t('Your files directory is not outside of the server root.');
-    $paragraphs[] = $this->l(
+    $paragraphs[] = Link::createFromRoute(
       $this->t('Edit the files directory path.'),
-      Url::fromRoute('system.file_system_settings')
+      'system.file_system_settings'
     );
 
     return [