diff --git a/src/IslandoraUtils.php b/src/IslandoraUtils.php index 51db0b2b..e598e216 100644 --- a/src/IslandoraUtils.php +++ b/src/IslandoraUtils.php @@ -566,14 +566,14 @@ class IslandoraUtils { * * @throws \Drupal\Core\Entity\Exception\UndefinedLinkTemplateException * Should the given entity not specify a "canonical" template. + * @throws \Drupal\Core\Entity\EntityMalformedException */ public function getEntityUrl(EntityInterface $entity) { $undefined = $this->languageManager->getLanguage('und'); return $entity->toUrl('canonical', [ - 'absolute' => TRUE, - 'language' => $undefined, - ]) - ->toString(); + 'absolute' => TRUE, + 'language' => $undefined, + ])->toString(); } /**