You are here

protected function LinkCheckerService::getReportLink in Link checker 8

Helper function to create report link.

2 calls to LinkCheckerService::getReportLink()
LinkCheckerService::exceptionHandling in src/LinkCheckerService.php
Exception handling.
LinkCheckerService::statusHandling in src/LinkCheckerService.php
Status code handling.

File

src/LinkCheckerService.php, line 357

Class

LinkCheckerService
Class LinkCheckerService.

Namespace

Drupal\linkchecker

Code

protected function getReportLink() {
  if (!isset($this->reportLink)) {
    $this->reportLink = Link::fromTextAndUrl($this
      ->t('Broken links'), Url::fromUserInput('/admin/reports/linkchecker'));
  }
  return $this->reportLink;
}