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\Mail\MailFormatHelper;
use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\dgi_fixity\EntityTypeInfo;
use Drupal\dgi_fixity\Form\SettingsForm; use Drupal\dgi_fixity\Form\SettingsForm;
use Drupal\user\Entity\User; 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' => $fixity_check->id(),
'fixity_check_revision' => $revision_id, 'fixity_check_revision' => $revision_id,
] ]
))->toString(); ));
} }
else { else {
$link = $fixity_check->toLink($date)->toString(); $link = $fixity_check->toLink($date);
$currentRevisionDisplayed = TRUE; $currentRevisionDisplayed = TRUE;
} }
@ -143,14 +143,10 @@ class FixityCheckController extends ControllerBase {
$row = [ $row = [
[ [
'data' => [ 'data' => $link->toRenderable(),
'#markup' => $link,
],
], ],
[ [
'data' => [ 'data' => $state,
'#markup' => $this->renderer->renderRoot($state),
],
], ],
]; ];

Loading…
Cancel
Save