Skip to content

Commit

Permalink
Coding standards...
Browse files Browse the repository at this point in the history
... also, throw in the other throws declaration.
  • Loading branch information
adam-vessey committed Jun 24, 2020
1 parent 7995270 commit ef4bddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/IslandoraUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,14 @@ private function getEntityQueryOrCondition(QueryInterface $query, array $fields,
*
* @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();
}

/**
Expand Down

0 comments on commit ef4bddf

Please sign in to comment.