Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / linkchecker / src / Controller / LinkCheckerUserReportPage.php
index bc1479a9d125b0ea67912d3299d07543c5d9adbb..28848384273045f7f59173e5e528c386918f8fc6 100644 (file)
@@ -10,6 +10,9 @@ use Symfony\Component\HttpFoundation\Request;
  */
 class LinkCheckerUserReportPage {
 
+  /**
+   * @return string
+   */
   public function content() {
     return '@TODO';
   }
@@ -23,9 +26,9 @@ class LinkCheckerUserReportPage {
   public function access(AccountInterface $account) {
     $user = \Drupal::currentUser();
 
-    // Users with 'access own broken links report' permission can only view their
-    // own report. Users with the 'access broken links report' permission can
-    // view the report for any authenticated user.
+    // Users with 'access own broken links report' permission can only view
+    // their own report. Users with the 'access broken links report' permission
+    // can view the report for any authenticated user.
     return AccessResult::allowedIf($account->id() && (($user->id()) == $account->id()) && $account->hasPermission('access own broken links report') || $account->hasPermission('access broken links report'));
   }