Browse Source

Code cleanup

pull/2/head
Nigel Banks 3 years ago
parent
commit
ee07be39a7
  1. 1
      dgi_fixity.module
  2. 12
      src/Controller/FixityCheckController.php

1
dgi_fixity.module

@ -13,7 +13,6 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Mail\MailFormatHelper;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\dgi_fixity\EntityTypeInfo;
use Drupal\dgi_fixity\Form\SettingsForm;
use Drupal\user\Entity\User;

12
src/Controller/FixityCheckController.php

@ -129,10 +129,10 @@ class FixityCheckController extends ControllerBase {
'fixity_check' => $fixity_check->id(),
'fixity_check_revision' => $revision_id,
]
))->toString();
));
}
else {
$link = $fixity_check->toLink($date)->toString();
$link = $fixity_check->toLink($date);
$currentRevisionDisplayed = TRUE;
}
@ -143,14 +143,10 @@ class FixityCheckController extends ControllerBase {
$row = [
[
'data' => [
'#markup' => $link,
],
'data' => $link->toRenderable(),
],
[
'data' => [
'#markup' => $this->renderer->renderRoot($state),
],
'data' => $state,
],
];

Loading…
Cancel
Save