Browse Source

Coding standards...

... also, throw in the other throws declaration.
pull/781/head
Adam Vessey 6 years ago
parent
commit
cbea65da98
  1. 8
      src/IslandoraUtils.php

8
src/IslandoraUtils.php

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

Loading…
Cancel
Save